httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <uh...@fantomas.sk>
Subject Re: [users@httpd] default server serving to change
Date Thu, 17 Jun 2010 11:45:52 GMT
On 14.06.10 11:56, Tapas Mishra wrote:
> I have 5 websites running on a webserver.
> I read Apache docs Apache serves the vhost file in alphabetical order
> of name of vhost file.
> 
> I have a few subdomains on main domain
> 
> http://mydomain.com
> 
> as follows
> http://site1.mydomain.com
> http://site2.mydomain.com
> http://site3.mydomain.com
> http://site4.mydomain.com
> 
> in one of them which is served by default I want to redirect to
> correct http://mydomain.com
> so I added in http://site1.mydomain.com
> 
> the ReWriteRule in vhost of site1.mydomain.com as follows

why rewrite rule when you can issue redirect by redirect directive?

Redirect / http://sice.mydomain.com/

(note the trailing slash, it should be there)

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
REALITY.SYS corrupted. Press any key to reboot Universe.

---------------------------------------------------------------------
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