Proxy pass: Difference between revisions

From Cheatsheet
Jump to navigation Jump to search
Created page with '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…'
 
m 1 revision
 
(No difference)

Latest revision as of 23:51, 23 October 2014

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>