You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Shearer <je...@shearer-family.org> on 2009/12/28 20:50:57 UTC

[users@httpd] Redirect permanent http to https fails

The following redirect fails:

Redirect permanent http://192.168.0.200/private https://192.168.0.200/private

I have 2 virtual hosts with exactly the same DocumentRoot:

<VirtualHost 192.168.0.200:80>

<VirtualHost 192.168.0.200:443>

private is a directory under the DocumentRoot.

I can reach https://192.168.0.200/private directly.

Please help.  Thanks.



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


Re: [users@httpd] Redirect permanent http to https fails

Posted by André Warnier <aw...@ice-sa.com>.
Jeff Shearer wrote:
> The following redirect fails:
> 
> Redirect permanent http://192.168.0.200/private https://192.168.0.200/private

That may be because you have not read the (excellent) on-line 
documentation, which states :

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirectpermanent
is exactly equivalenent to "Redirect permanent", which itself

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirect
states that the URL is a URL *path*, starting with "/".

So, what happens if you just say

Redirect permanent /private https://192.168.0.200/private

?

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