Re: default server serving to change

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

 



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@xxxxxxxxxxx ; 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@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