Re: silent redirecting

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

 



> I have situation where we have, let us say alpha.example.com
> bravo.example.com, we want to redirect them and example.com to
> zulu.example.com _but_ for that and every page under, they
> retain address bar of their original request hostname

You could enable mod_proxy, mod_proxy_http, mod_rewrite, then configure something like this (change your docroot path, VH port and protocol and domain names):

<VirtualHost *:80>
  ServerName example.com
  ServerAlias alpha.example.com
  ServerAlias bravo.example.com

  RewriteEngine on
  RewriteRule ^(.*)$ http://zulu.example.com$1 [R,P,QSA,L]
</VirtualHost>

<VirtualHost *:80>
  ServerName zulu.example.com
  DocumentRoot /YOUR_DOCROOT
  <Directory "/YOUR_DOCROOT">
    Options none
    AllowOverride all
    Require all granted
  </Directory>
  DirectoryIndex index.html
</VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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