I have set up a Drupal 6 site on a dedicated server, and enabled SSL through the "Matrix" control panel which was installed on it.
The problem is now, the site ONLY loads pages from https. Most of the images wont load either, I presume this is related to the same thing. Ideally I want both http and https to work, then I can sort out the redirects for pages that need to be secure.
The error presented on attempting to load a regular http page is:
**Bad Request** Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.
Can anyone point me in the right direction?
In sites-enabled/domainname.co.uk there is a <VirtualHost> set up for the IP of the server, using port 80 like so:
<VirtualHost xx.xx.xx.xx:80> ServerName xx.co.uk ServerAlias www.xx.co.uk ServerAdmin email@example.com DocumentRoot /home/default/xx.co.uk/user/htdocs ErrorLog /home/default/xx.co.uk/user/logfiles/error_log TransferLog /home/default/xx.co.uk/user/logfiles/access_log php_admin_value open_basedir /tmp:/home/default/xx.co.uk SuexecUserGroup xx matrixdomain ScriptAlias /cgi-bin/ /home/default/xx.co.uk/user/htdocs/cgi-bin/ AddHandler server-parsed .shtml AddType text/html .shtml <Location /> Options +Includes </Location> # Begin user directives <-- # --> End user directives
Would I need to make another one for 443?
In ports.conf I have
NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> # SSL name based virtual hosts are not yet supported, therefore no # NameVirtualHost statement here Listen 443 </IfModule>