Troy Moseley wrote:
In Apache 2.0.47 how do I redirect calls to ns1.mydomain,com to 
www.mydomain.com? I'm using virtual hosts and have set up my default host as:

you can use

NameVirtualHost 192.168.0.7:80

<VirtualHost 192.168.0.7:80>
 ServerName www.mydomain.com
 ServerAlias mydomain.com
 DocumentRoot "/Sites/mydomain/public_html"
 </VirtualHost>

<VirtualHost 192.168.0.7:80>
 ServerName ns1.mydomain.com
 Redirect 301 / http://www.mydomain.com
</VirtualHost>

--
Bob

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to