Proxy pass

From Cheatsheet
Revision as of 23:51, 23 October 2014 by Admin (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Example setup.

place in the domain specific include in httpd. uncomment this line in that domains vhost. If it isnt there backup the httpd.conf and rebuild it.

#Include "/usr/local/apache/conf/userdata/std/2/shooltz/*.conf"

now make the file.

vim /usr/local/apache/conf/userdata/std/2/shooltz/proxypass.conf

Place inside.

ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>
ProxyPass /news http://news.cleantechsandiego.org:12001/news
ProxyPassReverse /news http://news.cleantechsandiego.org:12001/news
<Location /confluence>
    Order allow,deny
    Allow from all
</Location>