You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tao Lei <ta...@gwbn.net.cn> on 2011/01/28 04:02:17 UTC

[users@httpd] mod_dir with HTTPS

Hello.

It seems that mod_dir does not work properly with SSL (https).

When working with http, there is no problem:
If url "http://www.abc.com/test" is requested, apache appends a "/" to the url and then respones to browser with code 301, telling it to request the newly-modified url ""http://www.abc.com/test/".

However, with https, things are not going as expected:
If url "https://www.abc.com/test" is requested, the new url responsed by apache is "http://www.abc.com/test/", but not "https://...", resulting in browser's page load error.

Any suggestion or solution, please?

Re: [users@httpd] mod_dir with HTTPS

Posted by Igor Galić <i....@brainsware.org>.
----- "Jeroen Geilman" <je...@adaptr.nl> wrote:

> On 1/28/11 4:02 AM, Tao Lei wrote:
> > Hello.
> >
> > It seems that mod_dir does not work properly with SSL (https).

This is moo-poo.

> > When working with http, there is no problem:
> > If url "http://www.abc.com/test" is requested, apache appends a "/"
> to the url and then respones to browser with code 301, telling it to
> request the newly-modified url ""http://www.abc.com/test/".
> >
> > However, with https, things are not going as expected:
> > If url "https://www.abc.com/test" is requested, the new url
> responsed by apache is "http://www.abc.com/test/", but not
> "https://...",
> 
> Then there are redirects or rewrites happening that you haven't 
> discovered or admitted to.

They could also be happening on the application side.

> -- 
> J.

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
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] mod_dir with HTTPS

Posted by Jeroen Geilman <je...@adaptr.nl>.
On 1/28/11 4:02 AM, Tao Lei wrote:
> Hello.
>
> It seems that mod_dir does not work properly with SSL (https).
>
> When working with http, there is no problem:
> If url "http://www.abc.com/test" is requested, apache appends a "/" to the url and then respones to browser with code 301, telling it to request the newly-modified url ""http://www.abc.com/test/".
>
> However, with https, things are not going as expected:
> If url "https://www.abc.com/test" is requested, the new url responsed by apache is "http://www.abc.com/test/", but not "https://...",

Then there are redirects or rewrites happening that you haven't 
discovered or admitted to.



-- 
J.


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