[us...@httpd] how to setup mod_ssl to accept only https requests

2009-06-18 Thread ravindra
Hi Everybody, I have added mod_ssl module to my apache 2.2 server then I typed https://localhost on my browser it worked, it served the certificate I installed. But when I type http://localhost it is still working (showing the index.html content in htdocs) . I want my apache

Re: [us...@httpd] how to setup mod_ssl to accept only https requests

2009-06-18 Thread Davide Bianchi
ravindra wrote: But when I type “http://localhost “ it is still working (showing the index.html content in htdocs) . I want my apache server to accept only “https “requests. How to configure this? You have two way: remove the 'Listen 80' option, basically disabling the whole http part, or

Re: [us...@httpd] how to setup mod_ssl to accept only https requests

2009-06-18 Thread Lyle Wincentsen
Davide wrote: You have two way: remove the 'Listen 80' option, basically disabling the whole http part, or add a 'RedirectPermanent / https:...' to the default http vhost to redirect all the http request to https. You could also call the following php function at the top of each page where you

RE: [us...@httpd] how to setup mod_ssl to accept only https requests

2009-06-18 Thread ravindra
Thanks guys your solutions worked. _ From: Lyle Wincentsen [mailto:lyle.wincent...@gmail.com] Sent: Thursday, June 18, 2009 12:47 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] how to setup mod_ssl to accept only https requests Davide wrote: You have two way: remove