Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
IBM developerWorks
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old February 3rd, 2004, 08:11 PM
quelle quelle is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Calgary, AB, Canada
Posts: 3 quelle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old February 4th, 2004, 10:16 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
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?

Reply With Quote
  #3  
Old February 4th, 2004, 10:22 PM
quelle quelle is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Calgary, AB, Canada
Posts: 3 quelle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old February 4th, 2004, 10:25 PM
quelle quelle is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Calgary, AB, Canada
Posts: 3 quelle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: ssl padlock icon disappears

thanks postalcow - I forgot to post the answer

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > ssl padlock icon disappears


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway