Connector Port 8088

60 views
Skip to first unread message

Hanspeter Vogt

unread,
Oct 31, 2019, 4:43:33 AM10/31/19
to OpenOlat
Hello

OpenOlat Application is listening on port 8088.

I ordered an domain by our registrar points to teh olat ubuntu server.

To get the login mask from openolat they've to enter url:8088.

Default port of an web request is 80 for http respectivly 443 for https.

Is there an easy way for a configuration change, to omit :8088 by requesting the application?

Kind Regards

Hanspeter

Florian Gnägi

unread,
Oct 31, 2019, 4:56:07 AM10/31/19
to open...@googlegroups.com
Hi Hanspeter

You need to configure the server properties properly in your olat.local.properties. See the olat.properties to learn what configuration options you have, you can override all of those properties in your olat.local.properties

Example of a olat.local.properties:

All configuration options:


For a productive setup you normally have to set
server.port.ssl=443
server.port=80
server.domainname=your.domain.name

Cheers
Florian

--
--
Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
Groups-Gruppe "OpenOlat".
Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
an open...@googlegroups.com
Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
openolat+u...@googlegroups.com
Weitere Optionen finden Sie in dieser Gruppe unter
http://groups.google.com/group/openolat?hl=de
-------------------------------------------------------------------------------------------------------------------
OpenOlat - infinite learning - http://www.openolat.org
---
You received this message because you are subscribed to the Google Groups "OpenOlat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openolat+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openolat/90b07ee7-856e-4fb7-af56-7556839cc3db%40googlegroups.com.

--------------------------------------------------------------------
professional services for the e-learning system OpenOLAT
hosting - operating - support - development - mobile - consulting
--------------------------------------------------------------------
frentix  GmbH
Florian Gnägi, Geschäftsführer
Okenstrasse 6
CH-8037 Zürich, Switzerland


Find me on wire skype twitter xing linkedin 
--------------------------------------------------------------------

Oliver Kant

unread,
Oct 31, 2019, 5:06:48 AM10/31/19
to open...@googlegroups.com
Hello Hanspeter

In the server.xml you have something like

<Connector port="8088" protocol="HTTP/1.1" />

which determines the port and what kind of communication you are using
here. You could change that, but I would recommend to put OpenOlat
behind an Apache Webserver (on the same server or some other server in
the same network). For that, you would for example use

<Connector port="8088" protocol="org.apache.coyote.ajp.AjpNio2Protocol"
maxThreads="128" processorCache="128" acceptCount="1024"
URIEncoding="UTF-8" />

And make an Apache Vhost to connect to that:

<VirtualHost 1.2.3.4:443>
ServerName openolat.example.com
SSLEngine On
SSLCertificateFile PATH/TO/CERT
SSLCertificateKeyFile PATH/TO/KEY
ProxyRequests Off
ProxyPass / ajp://localhost:8088/ nocanon max=64 keepalive=On
</VirtualHost>

I have written this from the top of my head, but it should be okay after
adapting it to your needs and after enabling the right modules on the
Webserver (SSL, proxy_ajp, proxy.. it will tell you when you are missing
something).

Additionally, make sure you have adapted your olat.local.properties
according to what Florian wrote.

Cheers, Oliver


Am 31.10.19 um 09:43 schrieb Hanspeter Vogt:
> --
> --
> Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
> Groups-Gruppe "OpenOlat".
> Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
> an open...@googlegroups.com
> Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
> openolat+u...@googlegroups.com
> Weitere Optionen finden Sie in dieser Gruppe unter
> http://groups.google.com/group/openolat?hl=de
> -------------------------------------------------------------------------------------------------------------------
> OpenOlat - infinite learning - http://www.openolat.org
> ---
> You received this message because you are subscribed to the Google
> Groups "OpenOlat" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openolat+u...@googlegroups.com
> <mailto:openolat+u...@googlegroups.com>.
> <https://groups.google.com/d/msgid/openolat/90b07ee7-856e-4fb7-af56-7556839cc3db%40googlegroups.com?utm_medium=email&utm_source=footer>.

Hanspeter Vogt

unread,
Oct 31, 2019, 6:01:14 AM10/31/19
to OpenOlat
Hi Florian, Oliver

Thank's so far for answering.
I'm not a java developer. I'm a 'normal' user trying to setup the olat environment to prepare an online education for a customer.

As I understand, to change the port I've to make some modification in the java code?

Need some more input / help.

Sincerely
Hanspeter

Oliver Kant

unread,
Oct 31, 2019, 6:22:24 AM10/31/19
to open...@googlegroups.com
Hello Hanspeter

No, you will not have to change the code, those are just configuration
files. If you installed OpenOlat following the manual
(https://www.openolat.com/fileadmin/adminwiki/_START_.html), you will
find the server.xml and the olat.local.properties outside the code, they
are here:

~/conf/server.xml
~/lib/olat.local.properties

I do recommend stopping OpenOlat before making changes to those files.
At the next start, OpenOlat will use the new configuration.

Cheers, Oliver

Am 31.10.19 um 11:01 schrieb Hanspeter Vogt:
> --
> --
> Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
> Groups-Gruppe "OpenOlat".
> Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
> an open...@googlegroups.com
> Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
> openolat+u...@googlegroups.com
> Weitere Optionen finden Sie in dieser Gruppe unter
> http://groups.google.com/group/openolat?hl=de
> -------------------------------------------------------------------------------------------------------------------
> OpenOlat - infinite learning - http://www.openolat.org
> ---
> You received this message because you are subscribed to the Google
> Groups "OpenOlat" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openolat+u...@googlegroups.com
> <mailto:openolat+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openolat/d50b82e2-aff0-43df-97d3-2ddfa2a11e7f%40googlegroups.com
> <https://groups.google.com/d/msgid/openolat/d50b82e2-aff0-43df-97d3-2ddfa2a11e7f%40googlegroups.com?utm_medium=email&utm_source=footer>.

Hanspeter Vogt

unread,
Oct 31, 2019, 10:37:00 AM10/31/19
to OpenOlat
Hello Florian, Oliver

Changes only in olat.local.properties doesn't have any impact on the request behaviour from extern. After changing made in the properties config and stop/start olat, I still have to enter mydomain:8088 to get the login to my open olat installation.

The tips from Oliver to configur a virtual webserver are on my point of view very complex for beginners, what I'm.

Maybe Florian can explain me the context / function of the olat.local.properties. On my point of view, the port configuration will overwritten by the setting in the server.xml.
Nice evening
Hanspeter


Am Donnerstag, 31. Oktober 2019 09:43:33 UTC+1 schrieb Hanspeter Vogt:

Florian Gnägi

unread,
Oct 31, 2019, 11:11:11 AM10/31/19
to open...@googlegroups.com
Hi Hanspeter

The configuration in olat.local.properties is for the application to know how it has to generate URL’s. If you set your domain name to localhost, all links in the UI, in mails etc. will have localhost. If you set the SSL port anything different than 0 it will assume that you use SSL and it will use https:// when writing URLs. If the ssl port config is 0 it will assume that you use only http (only for development) and use that port. Standard ports 443 and 80 will be omitted in URL, only special ports like 8080 will be added to URL’s. 

So far how OpenOlat is generating HTML pages. 

Now, this has nothing to do with the code that actually serves the generated pages to your browser! This is not done by OpenOlat but by your application server, e.g. Tomcat, maybe in conjunction with Apache as the web server that dispatches SSL (recommended for production). It does not have to be Tomcat, you could also use another J2EE application server, therefore there is general way to do it. The example Oliver gave you was for Tomcat 8. 

In the app server you configure the port that actually configures code to listen to this very port. Note the difference: in the OpenOlat config you configure the port only to generate HTML pages or Emails that contain links referring to the correct port. Obviously it is a misconfiguration to have different ports on the web server and the OpenOlat side. 

If you can not even get to the OpenOlat login page, the problem is in the Tomcat / Apache configuration and not in the OpenOlat configuration. 

If you want to run OpenOlat in a productive setup it is strongly recommended to have a system admin who is experienced with operating of Java web applications. Of course the simplest way to get up and running is to let us do this for you. Let us have the headaches and you will get time in return to focus on you paedegococial concepts and building fantastic e-learning scenarios and content ;-) More info about our services at https://www.frentix.com

Regards
Florian

--
--
Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
Groups-Gruppe "OpenOlat".
Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
an open...@googlegroups.com
Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
openolat+u...@googlegroups.com
Weitere Optionen finden Sie in dieser Gruppe unter
http://groups.google.com/group/openolat?hl=de
-------------------------------------------------------------------------------------------------------------------
OpenOlat - infinite learning - http://www.openolat.org
---
You received this message because you are subscribed to the Google Groups "OpenOlat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openolat+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openolat/ea7a1b3c-446b-49c5-8762-2f2c408e39b2%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages