How to Use an Apache Reverse Proxy with Philter
Running the Apache web server in front of Philter can have a few benefits. You can use Apache's authentication mechanisms to have greater control over who can access Philter's API, you can use SSL termination at Apache, use Apache's logs for access statistics, for example.
When terminating the SSL at Apache, make sure that the Apache reverse proxy and Philter are running on the same host so unencrypted traffic is not being sent over the network. To install and configure Apache on CentOS, RHEL and Amazon Linux follow the steps below. First, install the Apache:
Create the Philter configuration by creating a configuration file at /etc/httpd/conf.d/philter.conf
:
Start Apache:
Make sure it started successfully:
Set the Apache service to start automatically:
Verify you can access Philter through the reverse proxy: