It could be something like that yes.

Just to clarify:
        Router
        /       \
Server 1        Server 2

The router forwards all requests on port 80 to server 1. What I want is that
if a request for http://test.sveg.servemp3.com is received, it should be
directed to Server 2. On my internal network, I'm using 192.168.0.x
addresses, and to have the VirtualHost's defined on Server 1 to work, I have
to use IP-Based VirtualHost's. So in other words,
http://test.sveg.servemp3.com should be served by Server 2, but Server 1
should be the host that receives them and pass them on to the browser
requesting them. (Which I guess is not possible without using ProxyPass or
something similar?)

When I tested it, it redirects me to 192.168.0.3 (Server 2), but that is not
a public accessible ip. But thanks for the suggestion though :)

Thanks in advance,
Martin Bach Nielsen
http://sveg.servemp3.com


-----Original Message-----
From: Trung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: 17. juni 2005 18:36
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] Forwarding requests on a virtual host to another
computer on a internal lan

Is this you're looking for?

<VirtualHost ipaddress:80 >
        redirect / http://www.mydomain2.com
</VirtualHost>

-----Original Message-----
From: Martin B. Nielsen [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 17, 2005 12:31 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Forwarding requests on a virtual host to another
computer on a internal lan

Hi All.

I'm sorry if this question has been asked before, but I've just have to
ask:

I have 2 computers running Redhat 9.0, running Apache/2.0.40 Server on
both,
and I'm wondering, is there any (preferably simple) way to redirect a
virtual host on server 1 to server 2, when I have only one public
accessible
ip?
Can someone point me in the correct direction regarding documentation on
this?
Do I have to use ProxyPass (or something similar) to do this?
Documentation
links?

Thanks in advance

Martin Bach Nielsen
http://sveg.servemp3.com




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to