Follow

Subdirectory Proxy Configuration (Apache)

Enable mod proxy on the server

Mod proxy is required for routing traffic to your Proxy

# enable apache module for proxy
sudo a2enmod proxy
sudo a2enmod proxy_http

# restart apache
/etc/init.d/apache2 restart

Modify sites-available config file

Below is an example of configuring the customer's server to route all traffic to customerdomain.com/campaign/ to the Proxy you created for the customer.

<VirtualHost *:80>
ServerName customerdomain.com
# continue VirtualHost entries..

ProxyPreserveHost On

# at beginning of Directory rules
<Location /campaign/>
RequestHeader set Host customerdomain.com
ProxyPass http://255.255.255.255:80/campaign/
Order allow,deny
Allow from all
</Location>

# continue normal configuration..

</VirtualHost>

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk