Results 1 to 3 of 3
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 ...
- 09-16-2007 #1Just Joined!
- Join Date
- Nov 2002
- Posts
- 40
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.
- 09-16-2007 #2
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
- 10-07-2007 #3Just Joined!
- Join Date
- Nov 2002
- Posts
- 40
Ok, I am using the proxypass directive to redirect to my friends server. It works very well with one exception. Here is the layout.
<root>
..<images>
..<docs>
..<asp> (proxypass)
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 toCode:ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /asp/ http://192.168.1.21:82/ ProxyPassReverse /asp/ http://192.168.1.21:82/
to no avail.Code:ProxyPass /asp http://192.168.1.21:82/ ProxyPassReverse /asp http://192.168.1.21:82/
Any ideas?


Reply With Quote