LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mod_Proxy (Apache) won't forward requests (https://www.linuxquestions.org/questions/linux-software-2/mod_proxy-apache-wont-forward-requests-172442/)

bentman78 04-20-2004 07:12 AM

Mod_Proxy (Apache) won't forward requests
 
Good morning,
I have a netowrk setup with a web server inside a firewall. The web server has an ipaddress of 192.168.0.3. I have another server with some php pages with an ip address of 192.168.0.5.

I am trying to use mod_proxy to send request to that server. I have virtual hosts set up. This is what I have in the virtual hosts directive:

<VirtualHost 192.168.0.3:80>
Servername media.domain.com
ProxyRequests On
ProxyRemote * http://music.otherdomain.com
</VirtualHost>

I have the other web server entry in the hosts file on the Linux server. Does a ProxyPass/ProxyPassReverse need to be added. I know virtual hosts is working becuase I have other virtual hosts on the server and they are all working.
Any help would be appreciated.

bentman78 04-20-2004 08:49 AM

I think I got it. Further reading suggests that I may in fact have to put in ProxyPass. like this:

ProxyPass / http://localhost:80/VirtualHostBase/...rtualHostRoot/
ProxyPassReverse / http://localhost:80/VirtualHostBase/...rtualHostRoot/


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