Re: Apache redirect

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

 



Oliver Schulze L. wrote:
You can use proxypass as alexander says and virtualhost in apache, one
for each domain.

I tried the config I attempted the first time again with a few minor
changes and it works fine. The server is called www.cookie.uucp. The
config below works perfectly! Thanks

NameVirtualHost www.cookie.uucp:80

#
<VirtualHost www.mh.uucp:80>
  # Name of the server
  ServerName www.mh.uucp
  Redirect permanent / http://www.mh.uucp:8080/
</VirtualHost>
#
<VirtualHost www.cookie.uucp:80>
  # Name of the server
  ServerName www.cookie.uucp
  DocumentRoot /
#   Redirect permanent / http://www.cookie.uucp/
</VirtualHost>

--
Linux Home Automation         Neil Cherry       ncherry@xxxxxxxxxxx
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux