RE: [users@httpd] Forwarding requests on a virtual host to another computer on a internal lan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:trung.nguyen@xxxxxxxxxxxxxxxxxxxx] 
Sent: 17. juni 2005 18:36
To: users@xxxxxxxxxxxxxxxx
Subject: RE: [users@httpd] 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:apachemailinglist@xxxxxxxxxxxxxxxxx] 
Sent: Friday, June 17, 2005 12:31 PM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] 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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux