In my CGI programs and SSI scripts the various documented SSL_XXX variables do not exists. Why?
SSLOptions +StdEnvVars” enabled for the context of your CGI/SSI requests. • How can I use relative hyperlinks to switch between HTTP and HTTPS? [L] Usually you have to use fully-qualified hyperlinks because you have to change the URL scheme. But with the help of some URL manipulations through mod_rewrite you can achieve the same effect while you still can use relative URLs: RewriteEngine on RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L] RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L] This rewrite ruleset lets you use hyperlinks of the form