You are not logged in.

#1 2012-03-16 12:43:39

dracorp
Member
From: Poland, Gdańsk
Registered: 2010-05-11
Posts: 10
Website

[SOLVED][Apache]IfModule doesn't work

Hello
I have in httpd.conf:

Listen 80
<IfModule mod_ssl.c>
    Listen 443
</IfModule>
<IfModule ssl_module>
     Listen 442
 </IfModule>

but:

netstat -lpntu | grep http
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2047/httpd

Log startup:

[Fri Mar 16 13:30:23 2012] [debug] mod_so.c(246): loaded module ssl_module

Why IfModule doesn't work as expected? In accordance with: http://httpd.apache.org/docs/2.2/mod/core.html#ifmodule I can use module-file: mod_ssl.c or module-identifier: ssl_module.
What is wrong?

# apachectl -v
Server version: Apache/2.2.22 (Unix)
Server built:   Feb  8 2012 10:29:48

On Debian it works:

$ netstat -lpntu | grep apache
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      25706/apache2   
tcp        0      0 0.0.0.0:442             0.0.0.0:*               LISTEN      25706/apache2   
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      25706/apache2
$ apache2ctl -v
Server version: Apache/2.2.16 (Debian)
Server built:   Feb  5 2012 21:01:59

Edit:
My stupid mistake. I used <IfModule mod_ssl.c> before I loaded module.

Last edited by dracorp (2012-03-17 18:09:47)


My AUR packages

Offline

Board footer

Powered by FluxBB