Sentora Support Forums
Mod Proxy - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: Mod Proxy (/showthread.php?tid=2663)



Mod Proxy - Chris L - 03-09-2016

Hi All

just wondering if someone can guide me throu setting up mod proxy with sentora ?

ive tried adding a proxy to a second server within the Vhosts file but im getting a 503 Service Unavailable error

My Current Vhosts point to second server which i added in the sentora httpd-vhosts file is:

# Custom VH settings (if any exist)

</VirtualHost>

<VirtualHost *:80>
ServerName sub.domain.com
ServerAlias sub.domain.com
DocumentRoot /var/www/html
ProxyPreserveHost On
ProxyPass / http://192.168.1.10:80/ retry=0 timeout=5
ProxyPassReverse / http://192.168.1.10:80/
</VirtualHost>

any help would be great

Chris.


RE: Mod Proxy - Me.B - 03-09-2016

Why doing that thru the Vhost and messing up your config?

Use setup in .htaccess instead easy and works fine.

You can google it or see:
http://stackoverflow.com/questions/19257156/apache-mod-proxy-with-mod-rewrite-different-server-preserving-url

http://stackoverflow.com/questions/10452907/htaccess-rewrite-without-redirect