Apache redirect

Neil Cherry ncherry at comcast.net
Thu Aug 10 07:33:36 UTC 2006


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 at linuxha.com
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
http://home.comcast.net/~ncherry/               Backup site




More information about the fedora-list mailing list