Forum Moderators: phranque
I'm running apache 1.3.29 on RedHat Linux 9.0 with mod_ssl 2.8.96 and openssl version 0.9.7c. Right now ssl is working in the sense that I can visit
[myserver.com...]
and the page loads. test.html is a test page that just has some text and an image call <img src="/foo/myimage.jpg">
However, the image is broken. This happens both in MSIE and Opera.
If you view the image alone by visiting
[myserver.com...]
it *does* work.
I also tried
<img src="https://www.myserver.com/foo/myimage.jpg">
which didn't work either.
Some people have suggested checking httpd.conf and I've gone through it with a fine toothed comb. Notably I have the lines
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULLSetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://myserver.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.myserver.com/.*$ [NC]
RewriteRule .*\.jpg$ - [G]
and needed to add
RewriteCond %{HTTP_REFERER}!^https://myserver.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^https://www.myserver.com/.*$ [NC]
Oh well, maybe this post will help a future .htaccess user some day :)
Here's something for your trouble:
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?myserver\.com [NC]
RewriteRule \.jpg$ - [G]
Jim