LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Symlink? Just Installed SSL... Wont Work (https://www.linuxquestions.org/questions/linux-newbie-8/symlink-just-installed-ssl-wont-work-698597/)

simonm 01-20-2009 08:36 AM

Symlink? Just Installed SSL... Wont Work
 
We have a dedicated server with fasthosts.co.uk.

Our website was working fine on http://

We installed the SSL certificate, and now the website will ONLY work when browsed to by entering https://

When browsed to by http:// we just get a white screen, i was told i would have to setup a SymLink, but i do not know how to do this.

Also, we were told this is because we have a https and a http folder, but we do NOT, we only have a HTDOCS folder, nothing else.

Please advise the way forward, do i enter a command using SSH and if so, is this using the dedicated server root details?

Thank you,
Simon

datopdog 01-21-2009 01:13 AM

You need to setup a redirect if you want your users to only browse via https

Code:

RedirectPermanent / https://your_site_ext/

simonm 01-21-2009 03:42 AM

Where do i enter the above line, in httpd.conf? if so, at any particular location of the file?

Thank you!

datopdog 01-21-2009 03:46 AM

If the site is a virtualhost it needs to be within the virtualhost definition. If not it needs to be in the normal http.conf not the mod_ssl part.

simonm 01-21-2009 06:27 AM

But i have a dedicated server with 5 different IP's and 5 different domains. I want this to work on all the domains, how would i do that?

datopdog 01-21-2009 06:29 AM

Am sure you are using IP based virtual hosting so you need a redirect in each vhost.

simonm 01-21-2009 06:30 AM

Thanks for your time and help, how do i do that, i.e in every vhost.

yzhong 01-21-2009 09:16 PM

like this

<VirtualHost *:80>
ServerName example.com
RewriteEngine on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</VirtualHost>


All times are GMT -5. The time now is 05:40 AM.