Web Server
How can i make all request comming to by http port (80) be redirected to my https(443) port.
Sanjib Gupta |
To redirect unsecure web traffic from port 80 to 443: In <apache directory>/conf/httpd.conf change the "Listen" directive from 80 to 443.
Note: This will not enable SSL on your server, to enable SSL, you need to follow the instructions here: http://httpd.apache.org/docs-2.0/ssl/ssl_howto.html Good luck! BB |
some versions of apache come ready-to-go with SSL, before you go changing things, try this:
# apachectl startssl Then at least you'll be able to see what would stop apache from doing it. One thing is that you have to have compiled it with $ ./configure --enable-ssl or something like that, it's in the README. You can check with $ cd [apache modules dir] $ ls | grep mod_ssl.so if the file is there, you're in business. HTH B. |
All times are GMT -5. The time now is 04:27 PM. |