-
Go to Configuration → Virtual Hosts and click on the Virtual Host that is going to be used as the proxy.
In the Virtual Host configuration, go to the External App tab and hit Add.
Select Web Server from the drop down list.
On the following page, fill in the following and hit Save:
Name - Any unique external app name. It should not start with
http://
Address - The IP:PORT or UDS socket of the backend server. It cannot be a domain name.
Max Connections - The maximum number of concurrent connections to this Web Server at any time.
Initial Request Timeout (secs) - The maximum time in seconds the server will wait for a response.
Retry Timeout (secs) - The period of time that the server waits before retrying a request.
After saving, go to the Rewrite Tab and hit Edit.
Change the following and hit Save:
After saving, go to the General Tab → HT Access and hit Edit.
Allow Override - Make sure all boxes are checked, except “None”.
Access File Name - Type in .htaccess
Next, go to the Document Root and create a file named .htaccess.
In Shell or an Editor, edit the .htaccess file and add the following:
Once all of the steps above have been completed, perform a Graceful Restart for the changes to take effect.