Ich habe gerade ein SSL-Zertifikat von Go Daddy gekauft . Ich richte das Zertifikat folgendermaßen ein:
www.mydomainname.com (Ich habe die Domain geändert, wie Sie sehen können.)
Ich habe Apache eingerichtet und es funktioniert. Wenn ich tippe https://www.mydomainname.com, funktioniert alles.
JEDOCH:
Wenn ich tippe, http://www.mydomainname.comerhalte ich diesen Fehler von Apache:
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.
Ich hatte gehofft, ich könnte tippen
http://www.mydomainname.com für HTTP-Anfragen
und
https://www.mydomainname.com wenn ich sichere Anfragen möchte.
Was habe ich falsch gemacht?
Hier ist meine Apache-Konfiguration:
Unter Sites-fähig (ich verwende Ubuntus Apache-Setup)
Ich habe Datei angerufen ssl
<IfModule mod_ssl.c>;
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/www.mydomainname.com.crt
SSLCertificateKeyFile /etc/apache2/ssl/www.mydomainname.com.key
</IfModule>
und ein anderer namens webapp:
<IfModule mod_proxy_ajp.c>
ProxyRequests On
ProxyVia On
<Location />
Order allow,deny
Allow from all
AuthType Basic
AuthName "Restricted area"
AuthUserFile /etc/apache2/passwd/access
Require valid-user
ProxyPass ajp://localhost:9999/
ProxyPassReverse ajp://localhost:9999/
</Location>
<Location /uploader>
Order allow,deny
Satisfy Any
Allow from all
ProxyPass ajp://localhost:9999/uploader
ProxyPassReverse ajp://localhost:9999/uploader
</Location>
</IfModule>