httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nelson, Robert D." <RDNel...@Mail.Donaldson.com>
Subject RE: [users@httpd] redirect question
Date Wed, 30 Jun 2004 20:07:17 GMT
Shaun:

> I just installed apache 2.0.48 and can get to my site by 
> going to either 
>   http://... or https://...
> 
> I want users to only access the site securely. Rather than 
> blocking port 
> 80, can I somehow redirect anything that tries to access the site 
> insecurely, to its secure url? How would I do that?

In the VirtualHost for the non-SSL site, try adding:

 Redirect / https://www.yourdomain.com/

Take a look at the docs:
http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect

 ~ Robert


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