HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   SSL same document root? (http://www.howtoforge.com/forums/showthread.php?t=51410)

talkingnews 12th February 2011 14:10

SSL same document root?
 
Ispconfig 3, Ubuntu 10.10 apache2 suPHP.

My old ISP used to just allow http://example.com/file and https://example.com/file

For some reason sites created on my vps in ispconfig seem to have a different document root, even when made ssl afterwards. I tried copying the :443 vhost directive into the main vhost file pointing to the same doc root but it didn't like that.

I think I'm missing something embarrassingly basic here. I can't think of any possible reason anyone would ever want a complete copy of their site in a separate ssl folder, so what am I doing wrong here? Thanks!

falko 13th February 2011 19:48

Did you check the SSL checkbox for the example.com web, or did you create a new vhost for https://example.com in ISPConfig?

talkingnews 13th February 2011 20:15

Quote:

Originally Posted by falko (Post 251051)
Did you check the SSL checkbox for the example.com web, or did you create a new vhost for https://example.com in ISPConfig?

I ticked the SSL checkbox in the site I had created, after realising a few pages of it should probably be SSL.

So it was "create site in non-ssl mode, write site, tick ssl box".

What I definitely DON'T want is two subdirectories, one SSL and one NON-ssl.

Crap, I just thought - what if I symlink the two? Gonna try that first thing tomorrow. (Getting sleepy now, bound to mess it up!)

Will let you know what happens, unless anyone says "bad idea" or suggests an alternative in the next 12 hours!


All times are GMT +2. The time now is 23:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.