httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob <bobsie...@googlemail.com>
Subject Re: [users@httpd] Alais or Rewrite or ???
Date Sun, 14 Jan 2007 14:38:18 GMT
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message