Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite mod_ssl problems

https:// URLs wont redirect.

         

ara818

5:55 am on Feb 23, 2006 (gmt 0)

10+ Year Member



I searched and found a few topics on this, but none of the them helped me fix my problem. The basic problem is that redirects work fine, unless I use https:// URLs, wherein the SSL error log indicates that the redirect did not happen at all!

If it makes a difference, this is a custom-compiled httpd, wherein the modules are compiled in statically (I read one thread that suggested the LoadModule order of mod_ssl and mod_rewrite is usually the problem, but this doesn't apply to my setup!)

Here's the SSL conf:
<IfModule mod_ssl.c>
Listen 443
SSLPassPhraseDialog builtin
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLSessionCache dbm:/usr/local/apache2/conf/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/usr/local/apache2/conf/ssl_mutex
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
<VirtualHost _default_:443>
SSLEngine on
SSLCertificateFile /var/certs/x.crt
SSLCertificateKeyFile /var/certs/x.key
ErrorLog /var/log/apache2/httpd_ssl_error_log
CustomLog /var/log/apache2/httpd_ssl_access_log ssl
</VirtualHost>
</IfModule>

And the first few rewrites:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/?$ /index.php [L]
RewriteRule ^/users/?$ /indexusers.php [L]
RewriteRule ^/articles/?$ /indexarticles.php [L]
...
</IfModule>

Any ideas? Thanks in advance!