Tools
How to run WHD and Apache Tomcat on port 80
This article describe how to configure your Apache Tomcat server to proxy requests to Web Help Desk on port 8081. This will make it appear as if the application is running on port 80.
First published date
Last published date
Overview
Product section
Resolution
- Stop the Apache server.
- Log in to the Web Help Desk server as an administrator.
- Navigate to the WebHelpDesk directory.
Apple® OS X: /Library/WebHelpDesk
Microsoft® Windows®: \Program Files\WebHelpDesk
Red Hat®/CentOS™/Fedora Linux: /usr/local/webhelpdesk - Open the /conf directory.
- Open the whd.conf file in a text editor (such as Notepad).
- Leave the DEFAULT_PORT value set to 8081.
- Set the URL_DEFAULT_PORT value to 80.
- Save and close the file.
- Log on to your Apache server using an SSH or telnet client.
- Enable the mod_proxy module in your Apache Tomcat installation.
See Apache Module mod_proxy on the Apache website for details. - Locate the Apache httpd.conf configuration file.
This file is typically located at /etc/httpd/conf/httpd.conf.
See DistrosDefaultLayout for more information. - Add the following lines at the end of your httpd.conf Apache configuration file.
ProxyPass /helpdesk http://localhost:8081/helpdesk ProxyPassReverse /helpdesk http://localhost:8081/helpdesk
- Start the Apache server.