RE: changing port 8080 to 80 - Forum
Foren
RE: changing port 8080 to 80
Ken M. Penner, geändert vor 5 Jahren.
changing port 8080 to 80
Padawan Beiträge: 31 Beitrittsdatum: 22.06.18 Neueste Beiträge
00
I read the following:
I don't want my public URLs to be :8080. So, what's the recommended way to change this?
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?
Troy A. Griffitts, geändert vor 5 Jahren.
RE: changing port 8080 to 80
Youngling Beiträge: 13 Beitrittsdatum: 12.08.16 Neueste Beiträge
00
Well, there's "easy" and there's "recommended"
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!
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!