Apache 2 Question
I currently have a Ubuntu Server running Apache/2.2.3 and it serves web pages through the use of its virtual host capabilities. My room mate has setup his own Apache Server to develop on. I was curious is there a way create a virtual host that would in turn submit the requests to his machine, more of a proxy than a redirect.
this could be as easy as putting a redirect script in http://yourmachine/friends/index.html that redirects to your friends machine.
If you are wanting both to be served using the same dns name, http://yourmachine/yourstuff and http://yourmachine/friends without redirecting to a different IP or name then you need mod_proxy
mod_proxy - Apache HTTP Server
Ok, I am using the proxypass directive to redirect to my friends server. It works very well with one exception. Here is the layout.
When a user types in http://serveraddress/asp it does not redirect to http://serveraddress/asp/. This does work with any of the other directories. Below is my proxy configuration:
I have tried changing the above to
Allow from all
ProxyPass /asp/ http://192.168.1.21:82/
ProxyPassReverse /asp/ http://192.168.1.21:82/
to no avail.
ProxyPass /asp http://192.168.1.21:82/
ProxyPassReverse /asp http://192.168.1.21:82/