LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apache + Mod_proxy ProxyPass (https://www.linuxquestions.org/questions/linux-networking-3/apache-mod_proxy-proxypass-434233/)

paul_mat 04-11-2006 05:11 PM

Apache + Mod_proxy ProxyPass
 
Hi
could anybody used ProxyPass before give me a hint about ProxyPass and the Virtual Host
here is my conf files
=====================================================
part of httpd.conf
===================
ProxyPass /anything balancer://mycluster nofailover=Off lbmethod=byrequests
<Proxy balancer://mycluster>
BalancerMember http://apache1/app
BalancerMember http://apache2/app
Order Deny,Allow
Deny from none
Allow from all
</Proxy>
===================================================
part of conf/extra/httpd-ssl.conf
================================
NameVirtualHost *:443
<VirtualHost _default_:443>
SSLProxyEngine on
#General setup for the virtual host
DocumentRoot "/usr/apache-ssl/htdocs"
ServerAdmin root@balancer
ErrorLog /usr/apache-ssl/logs/error_log
TransferLog /usr/apache-ssl/logs/access_log

ProxyPass /anything balancer://mycluster nofailover=Off lbmethod=byrequests
<Proxy balancer://mycluster>
BalancerMember https://apache1/app
BalancerMember https://apache2/app
Order Deny,Allow
Deny from none
Allow from all
</Proxy>
#Alot of SSL Engine Options and so on:
</VirtualHost>
========================================
My problem is
when I hit http://balancer/anything or httpS://balancer/anything
it always give me whatever in the main conf file httpd.conf
I assume that it suppose to switch when I ask for HTTPS
==========================================================
it semes to me like ProxyPass in httpd.conf Overrides the
one in conf/extra/httpd-ssl.conf
or there is something missing in these configurations?
=============
Any suggestions?
Thanks

david_ross 04-14-2006 07:52 AM

I think you will need to create another virtualhost for port 80 and then put the http proxy configuration inside that.

paul_mat 04-14-2006 08:57 PM

yea thanks it all worked out, i was going to post back here to answer the question.

http://www.yourhowto.org/component/o...id,30/catid,5/


All times are GMT -5. The time now is 03:57 PM.