httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack L. Stone" <j...@sage-one.net>
Subject RE: redirect directive: avoiding recursive loop
Date Tue, 16 Apr 2002 19:04:00 GMT
I've followed this and wonder how to redirect from one main server with an
outside connection and IP (gateway/dns/mail 192.168.0.1 & www.xxx.xxx.1) to
another one that is connected on the same internal network (like
192.168.0.5 & www.xxx.xxx.2) that I want to use as a separate server with
its own IP....?

I have dynamic IP now (using dynamic DNS service), but that changes this
week and I will have multiple permanent static IPs. Not sure what to
change....if can be redirected in apache or should be done on network
interfaces.

The present public dynamic IP is picked up on a tun0 interface upon
connection and the main server has 2 NICs.

.....appreciate xpert tips on best way.


At 02:40 PM 4.16.2002 -0400, Hong Tian wrote:
>
>I try this, but have Syntax error on line xxx, 
>Redirect to non-URL
>...httpd could not be started.
>
>Do you know what is the problem?
>
>> <VirtualHost *>
>> ServerName 
>> Redirect permanent / http://www.xxx.com/
>> </VirtualHost>
>
>TIA
>
>-----Original Message-----
>From: Matthew Pearce [mailto:mpearce@digitas.com]
>Sent: Tuesday, April 16, 2002 12:03 PM
>To: users@httpd.apache.org
>Subject: RE: redirect directive: avoiding recursive loop
>
>
>Thanks Joshua, 
>That's great.
>
>>> I have multiple hosts using the same IP address. How do I get the all
>>> valid urls to redirect one host. To understand what I am asking try
>>> launching your browser and enter the url http://sun.com. You'll see
>>> that the url changes to http://www.sun.com I have tried to do this in
>>> Apache using the Redirect directive in mod_alias.
>
>> Try this:
>> NameVirtualHost *
>
>> <VirtualHost *>
>> ServerName doesnt.matter.catches.everything.except.www.xxx.com
>> Redirect permanent / http://www.xxx.com/
>> </VirtualHost>
>
>> <VirtualHost *>
>> ServerName www.xxx.com
>> DocumentRoot D:/Apache/htdocs/manual/vhosts/
>> </VirtualHost>
>
>> Joshua.
>
>
>---------------------------------------------------------------------
>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@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>---------------------------------------------------------------------
>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@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>---------------------------------------------------------------------
>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@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>

.... our website: http://www.sage-one.net/

Best regards,

Jack L. Stone
Server Admin

---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message