You need to create 2 virtual hosts: one for port 80 where SSL is NOT enabled, and one on port 443 where SSL is enabled. You will also need two Listen directives: one for each of ports 80 and 443. Listen *:80 Listen *:443 <VirtualHost *:443> ServerName my.server.com:443 SSLCertificateFile /sslcerts/crt/my.server.com.crt SSLCertificateKeyFile /sslcerts/key/my.server.com.key SSLEngine on </VirtualHost> <VirtualHost *:80> ServerName my.server.com:80 SSLEngine off </VirtualHost> -ascs -----Message d'origine----- De : Thomas Antony [mailto:thomas@xxxxxxxxx] Envoyé : lundi 10 décembre 2007 11:30 À : users@xxxxxxxxxxxxxxxx Objet : plain HTTP to an SSL-enabled server port Hi, I bought a Thawte certificate and configured that in Apache 2.2 with a IP based virtual host. SSL is working fine but everytime i open the site with http:// i get this error message displayed: 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. Hint: https://www.example.com The website should be reachable with http and https and no error message should be displayed. Which directive has to be set to get both working? regards, Thomas Antony --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx