httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Grunnell" <jgrunn...@firstnet.net.uk>
Subject RE: [users@httpd] mod rewrite problem
Date Thu, 22 May 2003 10:03:16 GMT
yep - guess that would work, but still need to be able to do this via mod_rewrite.

J.

-----Original Message-----
From: Joseph A Nagy Jr [mailto:joseph_a_nagy_jr@charter.net]
Sent: Thursday, May 22, 2003 11:00 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] mod rewrite problem


Julian Grunnell wrote:
> Making some progess. I now have:
> 
> ...
> RewriteEngine on
> RewriteLogLevel 9
> RewriteLog logs/rewrite.log
> RewriteCond %{HTTP_HOST} ^www\..*
> RewriteRule ^/(.*)$ http://www1.whatever.com/$1
> ...
> 
> Which sends www.* to www1.whatever.com/
> 
> But is there a single rule that for example would send:
> www.test1.com --> www1.test1.com
> www.test2.com --> www1.test2.com
> www.test3.com --> www1.test3.com
> ?
> 
> Thanks - J.
<snip>

Why not just set your server name as www1.*.tld and serveralias as 
www.*.tld?


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


###  This email has been checked for all known viruses by the 
###  Firstnet anti-virus system - http://www.firstnet.net.uk 
###  Please email fav@firstnet.net.uk for details. 


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


Mime
View raw message