Apache 2.0.52 - mod_dir.c

Discussion in 'Server Operation' started by ZC1, May 21, 2006.

  1. ZC1

    ZC1 New Member

    Hi,

    In the past I used Apache 1.3.x which had the below lines in the httpd.conf and also in AddModule mod_dir.c

    <IfModule mod_dir.c>
    DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm
    default.htm default.html home.htm
    </IfModule>


    Now I am using Apache 2.0.52 with was installed, when I installed CentOS 4.3.
    In the httpd.conf there is: LoadModule mod_dir.so but that the only part that has anything to do with mod_dir in the httpd.conf

    When I run the command: 'httpd -l' I get:

    Compiled in modules:
    core.c
    prefork.c
    http_core.c
    mod_so.c

    How do I install mod_dir.c into Apache 2.0.52 ?

    Or do I have to upgrade to Apache 2.0.58 or will I need to install Apache 2.2.2, or would I be better to go down to 1.3.36 ?

    I am also having another problem which I believe is related to the missing mod_dir.c which is all addresses in the browse must have the

    trailing / or the address fails.

    Regards,
    Garry
     
  2. falko

    falko Super Moderator

    This happens because the ServerName in your Apache configuration is different from the URL you use.
     

Share This Page