I want to remove switch from port 8080 on my Apache Tomcat on Linux server CentOS 6.5 to the default. On My hosted Apache Tomcat server is running on port 8080 on url vmx15978.hosting24.com.au:8080. After I have installed the Geoserver software on the Apache server the url for it is http://vmx15978.hosting24.com.au:8080/geoserver/web/.
My website domain is links-map.com. Currently I can access Geoserver by this URL: links-map.com:8080/geoserver/web; However, I want to access Geoserver without 8080 using this URL instead: http://links-map.com/geoserver/web/
taken from here
in your tomcat install dir, look for
server.xml
file.change
to
or any other port (80 is the default without specifying port)
don't forget to restart tomcat to apply changes
Even after changing port
8080
to80
we won't be able to access tomcat with it, as 80 is a privileged port, so it should be run by root,Hence we can change Tomcat user to
root
as below and issue will be resolved, now we will be able to open tomcat site without 8080.Note: It is not recommended to run tomcat with root user.
I had the same problem. It means I need to change port number from 8080 to 80 so that I can access my url (e.g
www.mydomain.com
) without appending 8080. But I found a different way to solve the problem. Instead of changing port number inserver.xml
. I redirected port number 80 to 8080 using the following script. This works perfectly fine for me.Please find more at this link