httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ajay Garg <ajaygargn...@gmail.com>
Subject [users@httpd] ProxyPass and ProxyPassReverse not working for URLs other than /
Date Sat, 08 Apr 2017 05:11:39 GMT
Hi All.


When I have the following configuration :

#########################################################
<VirtualHost *:80>
        ProxyPass / http://127.0.0.1:9000/
        ProxyPassReverse / http://127.0.0.1:9000/
</VirtualHost>
#########################################################

and I type http://1.2.3.4 in the browser, the page is successfully proxied
to the forwarded port 9000, and the to-and-fro interaction is perfect.



However, if I use,

#########################################################
<VirtualHost *:80>
        ProxyPass /9000/ http://127.0.0.1:9000/
        ProxyPassReverse /9000/ http://127.0.0.1:9000/
</VirtualHost>
#########################################################

and I type http://1.2.3.4/9000/ in the browser, it says the resource cannot
be found.


How can this be corrected? I am sure I am doing something wrong while
specifying the ProxyPass and ProxyPassReverse directives.


Thanks and Regards,
Ajay

Mime
View raw message