Solved

SSL, what is "allowed?

Posted on 2011-03-10
2
219 Views
Last Modified: 2012-05-11
So,

I have a main domain, ex. domain.com
And a subdomain, ex. secure.domain.com

I plan to add SSL to secure.domain.com

The frontpage of the subdomain will use the same layout and styling as the main domain (domain.com) and I would like to use the same css files as the main domain. The rest of the subdomain will use a seperate/new layout, so thats no problem.

The problem is, someone told me that all files in include (images, css, files outside public_html etc... everything), needs to be placed within the subdomain (for SSL). Is this true? Do I have to copy all my css, images and other files from my main domain to my subdomain?
0
Comment
Question by:kgp43
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Expert Comment

by:Michael701
ID: 35101776
What I've done in the past is to place the secure scripts (php) in a folder under the host root. So the url would be https://www.mysite.com/secure/login.php. You can then make sure that when a script is run it's under the HTTPS:// url

This way the entire site can be viewed under the ssl.

This gets away from the warning messages when accessing files outside of the SSL domain.
0
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
ID: 35101815
Hi,

CSS, Images and other files should use a relative path in the first place like ..\file.gif or ..\..\image.png. With that said, Anything that is posted in a browser under https (is secure and encrypted).

Now, the domain you want to secure is secure.domain.com. Assuming you are creating a brand new virtual host setup in your httpd.conf and simply creating virtual paths to your css/images, it will be secure.

Remember it is the site that is secure and everything under it. If the virtual host is only listening on port 443, then everything under it - not matter where the content is stored, is secure and served under SSL.

Cheers,
Hades666
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question