You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2017/01/30 18:08:45 UTC

[Bug 59829] Detect HTTPS marker from reverse proxy

https://bz.apache.org/bugzilla/show_bug.cgi?id=59829

--- Comment #9 from Jean Weisbuch <je...@phpnet.org> ---
Its unfortunately still not enough for the HTTPS variable to work with
mod_rewrite, such rewriterules will not work and create a redirect loop :
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]


Its not working because mod_rewrite doesnt rely on the "HTTPS" variable but it
does call the mod_ssl function "ssl_is_https()".
The code calling this function is located in "lookup_variable()" in
mod_rewrite.c where it does :
    int flag = rewrite_is_https && rewrite_is_https(r->connection);



So far i havent found a simple solution to this issue that wouldnt involve
modifying mod_rewrite (or mod_ssl).

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org