Apache 2.0.52 - mod_dir.c

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

  1. ZC1

    ZC1 New Member


    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

    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:

    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.

  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

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

Share This Page