|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
ssl padlock icon disappears
I've installed Apache with SSL and the certificates have been installed fine. I've got serveral subdomains sharing images, so I've created a separate directory which is available to the subdomains using symbolic linking (ln -fs /www/shared /www/mysite/shared).
Simple pages (all content contained in the document root) load correctly, but when I attempt to load pages where some content is contained in the symbolically linked directory the lock icon shows briefly in the status bar on the browser, but then disappears after the page loads (though no errors are displayed). <VirtualHost 192.168.1.101:443> ServerName secure.mydomain.com:443 DocumentRoot "/www/mysite" SSLCertificateFile /usr/local/apache/conf/ssl/mydomain.com.crt SSLCertificateKeyFile /usr/local/apache/conf/ssl/mydomain.key SSLCACertificateFile /usr/local/apache/conf/baltimore.crt SSLEngine on SSLProtocol all SSLCipherSuite HIGH:MEDIUM <Directory "/www/mysite"> Options -Indexes FollowSymLinks MultiViews IncludesNoExec AddOutputFilter Includes html AllowOverride None Order allow,deny Allow from all SSLRequireSSL </Directory> </VirtualHost> The secure-padlock-icon only disappears when displaying a page with content in a symbolically linked directory. How can I fix this so that the secure-padlock-icon remains? |
|
#2
|
|||
|
|||
|
RE: ssl padlock icon disappears
If you are pulling things from a non secure area, say; Images, included files, the lock will unlock. Can I see the code in your secure page that changes it to unlocked?
|
|
#3
|
|||
|
|||
|
RE: ssl padlock icon disappears
Now that I'm done beating my head against the wall, I figured out what my (silly) error was.
It had nothing to do with the symbolically linked directories. I only want certain pages on my site being served via https, so I had added the following to my VirtualHost container: RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !(page1|page2|page3).php RewriteRule ^/(.+) http://%{SERVER_NAME}/$1 [R,L] But neglected to add the following condition: RewriteCond %{SCRIPT_FILENAME} !.(gif|jpg|js|css)$ So when the https pages were being served, the images and javascript files included on those pages were being redirected back to http, causing the padlock icon to disappear. Silly me |
|
#4
|
|||
|
|||
|
RE: ssl padlock icon disappears
thanks postalcow - I forgot to post the answer
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > ssl padlock icon disappears |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|