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 |
You need to setup a redirect if you want your users to only browse via https
Code:
RedirectPermanent / https://your_site_ext/ |
Where do i enter the above line, in httpd.conf? if so, at any particular location of the file?
Thank you! |
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.
|
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?
|
Am sure you are using IP based virtual hosting so you need a redirect in each vhost.
|
Thanks for your time and help, how do i do that, i.e in every vhost.
|
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. |