LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Web Server (https://www.linuxquestions.org/questions/linux-newbie-8/web-server-87828/)

sanjibgupta 08-31-2003 11:29 PM

Web Server
 
How can i make all request comming to by http port (80) be redirected to my https(443) port.
Sanjib Gupta

bblank 08-31-2003 11:34 PM

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

german 09-02-2003 06:28 AM

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.