LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-18-2006, 09:09 AM   #1
ZC1
LQ Newbie
 
Registered: May 2006
Posts: 13

Rep: Reputation: 0
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
 
Old 05-19-2006, 12:55 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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
 
Old 05-20-2006, 10:40 AM   #3
ZC1
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Had apache working, then set up vsftpd, now apache is refusing my connections beetle_boy66 Linux - Newbie 4 01-25-2006 08:57 PM
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration