Arty Ziff Posted December 12, 2010 Share Posted December 12, 2010 This could be an Apache question, but maybe not... I have several directories where stuff is served up with an SSL conx. One contains a bunch of user authentication scripts used on pages that need to be "logged in" to access. Another contains pages for "logged in" users. I've been careful such that pages for "logged in" users are not served anything from a non SSL conx. Chrome tells me that this is so, but FF and ID tell me: "contains both secure and non-secure items" What's the best way to track this down, find out what content is not being served up from a secure conx? Quote Link to comment https://forums.phpfreaks.com/topic/221373-contains-both-secure-and-non-secure-items/ Share on other sites More sharing options...
Arty Ziff Posted December 12, 2010 Author Share Posted December 12, 2010 Actually, I've discovered that the directory that contains the scripts that authenticate users is not dishing it up via SSL. Here's what I'm doing in httpd.conf... Directory that's working fine: <Directory "/home/my_site/public_html/secure"> AllowOverride All RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} secure RewriteRule ^(.*)$ https://www.my_site.com/secure/$1 [R,L] </Directory> Directory that's giving me non-SSL conectivity... <Directory "/home/my_site/public_html/classes"> AllowOverride All RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} secure RewriteRule ^(.*)$ https://www.my_site.com/classes/$1 [R,L] </Directory> But the directives are the same, why would one function how I want, but not the other? Quote Link to comment https://forums.phpfreaks.com/topic/221373-contains-both-secure-and-non-secure-items/#findComment-1146070 Share on other sites More sharing options...
requinix Posted December 12, 2010 Share Posted December 12, 2010 What the browsers care about is what you initially told them to retrieve. If you are on an https:// page and there's a request for something http:// then it's insecure. Even if it'll end up in a redirect to a secure file, it started off insecure and that's what they're complaining about. So just make sure nothing has a http:// link. Quote Link to comment https://forums.phpfreaks.com/topic/221373-contains-both-secure-and-non-secure-items/#findComment-1146083 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.