Apache 2 / SSL and virtual host under GNU/Linux Debian Etch - http and https
Hello,
I have a web server under Debian Etch. I can access web page using http://myvhost.mydomain.com I'd like to provide users a more secure way to access this page using SSL I successfuly used this tutorial http://www.debianadmin.com/install-a...bian-etch.html and I can access to the web page using https://myvhost.mydomain.com:443 but I have a problem I would like to be able to provide both a http access and a https access without providing port in the url so http://myvhost.mydomain.com and https://myvhost.mydomain.com (on the same server, same ip) Is it possible ? If not I can put NameVirtualHost *:80 NameVirtualHost *:443 in my /etc/apache2/sites-available/default conf file but should I put exactly the same parameters for both virtualhost (<VirtualHost *:80> and <VirtualHost *:443>) or is there a way to say something like <VirtualHost *:443> is same as 80 except you should add SSLEngine on SSLCertificateFile /etc/apache2/apache.pem (because I have some directories protected using AuthType Basic and I don't consider that copy/paste it is a good idea) Kind regards |
All times are GMT -5. The time now is 04:44 PM. |