Make Tomcat Work Through Port 80
On a machine running Tomcat and Apache, you can set things up so that instead of having to type Tomcat URLs with ":8080" on the end of the domain, you use a proxy to redirect that traffic to Tomcat.
I had to adjust two files: httpd.conf in my \conf directory, and server.xml in my \conf directory. My edited files are attached.
For the Apache configuration (httpd.conf), you have to do three things:
1. Uncomment three lines by deleting the "#" at the beginning of the line:
|LoadModule proxy_module modules/mod_proxy.so|
|LoadModule proxy_ajp_module modules/mod_proxy_ajp.so|
|LoadModule proxy_http_module modules/mod_proxy_http.so|
2. Add the following lines directly below all the "LoadModule" commands:
|Allow from 127.0.0.1|
3. For each webapp that you want redirected, add the following lines (example below is for my geoserver webapp, and "malachite" is the domain name for my server):
|ProxyPass /geoserver http://malachite:8080/geoserver|
|ProxyPassReverse /geoserver http://malachite:8080/geoserver|
|Allow from all|
For the Tomcat configuration (server.xml), find the "Service" element, and the "Connector" child element. To that "Connector" element, add the attributes proxyName="<your domain name (malachite in my case)>" and proxyPort="80".
NOTE: I had to change the extension on the httpd.conf file in order to upload it here. On your computer the file has to be named "httpd.conf" and not "httpd.txt"