Server Path Override

Host pages underneath a sub-directory of your primary domain

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>

Subdirectory Proxy Configuration (NGINX)

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.

server {
listen 80;
server_name customerdomain.com;
# continue configuration entries..
location /campaign/ {
proxy_set_header Host customerdomain.com;
proxy_pass http://255.255.255.255:80;
}
# continue normal configuration..
}