LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache 2.0.52 - mod_dir (https://www.linuxquestions.org/questions/linux-general-1/apache-2-0-52-mod_dir-446059/)

ZC1 05-18-2006 09:09 AM

Apache 2.0.52 - mod_dir
 
Hi,

In Apache 1.3.x it was possible to have the following lines in the httpd.conf

<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>

and also in Apache 1.3.x, in the httpd.conf there is: AddModule mod_dir.c


But all I can find in Apache 2.0.52 httpd.conf is: LoadModule mod_dir.so
So is mod_dir installed, if so what is it called and how do I call it and if not how do I install it ?

Also the only DirectoryIndex etc... I have is in the virtualhost part of the account, which I was hoping to just have in one place, so if and

when I need to change it, I don't have to change each virtualhost

Regards,
Garry

pljvaldez 05-19-2006 12:55 PM

I can only answer the "is mod_dir.c installed" part. Type in apache2 -l (that's -L) at a console and you should get a list of mods that are compiled in to the apache2 server. Mine shows mod_dir.c

ZC1 05-20-2006 10:40 AM

Hi,

Thank you for your reply :)

I do not have it listed, when I have typed: 'httpd -l' (apache2 -l did not work for me)

All I have is:

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

Can anyone tell me how to add 'mod_dir.c' ?

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

Regards,
Garry


All times are GMT -5. The time now is 09:00 PM.