Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use https:// only

Status
Not open for further replies.

IPOz

Programmer
Jul 11, 2001
109
0
0
CN
Hi,friends
I have built a secure site using apache+mod_ssl however the normal http service does exist.
The users can visit the site either by http:// or by How can i stop the http:// visit ?

Hope you understand what i said !


Best Regards! IPO_z@cmmail.com
Garbage in,Garbage out
 
Tell apache not to listen to port 80 or bind it to the ip you want it to listen to.
 
Bind to port 443. Httpd.conf should have an SSL enabled VirtualHost container already defined. You should just have to replace some of the directives with your own info.

 
Hi,

If you never use regular http, you can edit your httpd.conf and remove the 'Listen 80' directive so that you only have 'Listen 443'.

Regards
 
ifincham,thank you very much!
By comment the "Listen 80",the user can only use https:// now :)

Regards! IPO_z@cmmail.com
Garbage in,Garbage out
 
:eek:( but didn't I say something kinda sorta like that earlier?
 
RhythmAce,sorry i have missed your earlier post that is same useful .

Best Regards! IPO_z@cmmail.com
Garbage in,Garbage out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top