Fórum

RE: changing port 8080 to 80

thumbnail
Ken M. Penner, modificado 5 Anos atrás.

changing port 8080 to 80

Padawan Postagens: 31 Data de Entrada: 22/06/18 Postagens Recentes
I read the following:
Ultimately, you'll probably want to use Apache httpd as your web server and integrate the Liferay-included Tomcat bundle with Apache httpd using mod_jk so your public URLs won't be :8080 (you could also simply do this by changing the port Tomcat runs its httpd server at from 8080 to 80, but then you'll need to run Tomcat as root-- not recommended).  For a demo, you can decide if your URLs can be :8080

I don't want my public URLs to be :8080. So, what's the recommended way to change this?
thumbnail
Troy A. Griffitts, modificado 5 Anos atrás.

RE: changing port 8080 to 80

Youngling Postagens: 13 Data de Entrada: 12/08/16 Postagens Recentes
Well, there's "easy" and there's "recommended" emoticon

The easy way is simply to stop tomcat, modify tomcat/conf/server.xml, searching for 8080 and change it to 80

But then you'll need to start your portal up as root, with full permission on your server because only root can serve on ports under 1024.

The "recommended" way is to let some hardened web server on your box proxy tomcat to the rest of the world.  I typically do this with apache httpd server, this requires installing mod_jk for apache and then configuring appropriately.  I include my configuration file for one of our instances of vmrcre (CoptOT) in your source code checkout under community/liferay/apach-httpd*

You could also run nginx and proxy port 8080 to 80, which is pretty easy to setup.

None of this is vmrcre-specific, so you should be able to find information with "how to safely serve tomcat on port 80".

Let me know if you need help.  I'm pretty excited you've gotten this far without any!  Well done!