ServerAlias and redirecting, please help

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

 



Hi there,

I searched for a while but couldn't point out what is the right way to
do the following:

We have the following virtualhost configuration:

...
ServerName www.site.ru
	DocumentRoot /home/www/ru.site.www
	ServerAlias xx.site.com
...

What I need is to redirect from http://xx.site.com to the
http://www.site.ru/some/location

I tried RedirectPermanent but it seems to work only for locations
relative to the virtualhost root.
RewriteRule also had no effect.

What is the correct way to configure apache so it will redirect from
xx.site.com to http://www.site.ru/some/location ?

Any help greatly appreciated!
Thanks in advance,
Dmitry

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