Friday, February 14, 2014

apache reverse proxy

sigh
Enable the following modules
$ a2enmod proxy
$ a2enmod proxy_http
$ a2enmod vhost_alias
$ a2enmod rewrite


    DocumentRoot /there
    ServerName nothere.com

    RewriteEngine on
    ProxyPass / http://nothere/com/ connectiontimeout=5 timeout=60
    ProxyPassReverse / http://nothere.com/
    ProxyRequests     Off


Restart Apache:
$ service apache2 restart

No comments: