Packages » Apache

ID #1123

Howto disable HTTPS support in Apache

If you do *NOT* need the HTTPS server (secure HTTP requests via port 443), then you can disable this Virtual Server as follows:

1. edit your httpd.conf and disable loading of the mod_ssl module:

<IfDefine SSL>
#LoadModule ssl_module         libexec/libssl.so
LoadModule php4_module        libexec/libphp4.so

and a bit further down:
<IfDefine SSL>
#AddModule mod_ssl.c
AddModule mod_php4.c


2. Then locate the lines where the Virtual Host for HTTPS is defined and change that from:

<IfDefine SSL>

##
## SSL Virtual Host Context
##
<VirtualHost _default_:443>


into:
<IfDefine SSL_BLAH>

##
## SSL Virtual Host Context
##
<VirtualHost _default_:443>


3. Locate the next lines:

<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>

and change that into:
<IfDefine SSL>
Listen 80
#Listen 443
</IfDefine>


4. safe changes and restart Apache with:

rc_httpd restart


Test if the changes were succesfull with your /apache.html test page (standard in the package). The PHP scripts should still work, but HTTPS access should be disabled (you should get a 'Connection refused' error).

Last update: 2004-11-28 17:12
Author: dingetje
Revision: 1.0

change language
 

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 5 from 5 (1 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry