Next: Redirecting to HTTPS, Previous: Apache, Up: Apache [Contents][Index]
Configure Apache 2 to enable the proxy
and
http_proxy
modules. On Debian this can be done with:
$ sudo a2enmod proxy $ sudo a2enmod http_proxy
The application should be run over HTTPS to keep the login credentials secure, otherwise others can see and re-use those credentials.
Modify the Apache server configuration to implement proxying to the Trip
Server application. These rules need to be in a <VirtualHost
_default_:443/>
or <Directory/>
section of the mod_ssl
configuration file.
Add the following to trip.conf
outside the <directory\>
directive:
<IfModule mod_proxy.c> ProxyPass /trip" "http://localhost:8080/trip" ProxyPassReverse "/trip" "http://localhost:8080/trip" </IfModule>