httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark McCulligh" <mmccu...@visualtech.ca>
Subject [users@httpd] Setting up Redirect using Apache
Date Fri, 09 May 2003 14:35:41 GMT
I am trying to setup redirection using Apache and below is the example from
the documentation online. Wouldn't the ServerAlias be example.net, not
example.com. I setup my apache using this example and if a user types in
example.net without the www in front they don't get the site.  If I change
the ServerAlias to example.net it works now.  I am doing something worry?
Both www.example.com and example.com work, but not example.net with the
redirect.

NameVirtualHost ?

<VirtualHost ?>
  ServerName www.example.net
  ServerAlias example.com    (Why not example.net)
  Redirect permanent / http://www.example.com/
</VirtualHost>

<VirtualHost ?>
  ServerName www.example.com
  DocumentRoot /usr/local/apache/htdocs
</VirtualHost>

Thanks,
Mark.


---------------------------------------------------------------------
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