RE: [expert] Directive Help in Apache

2002-12-07 Thread H. Carter Harris
The way you normally open a webpage is to point to the domain name (i.e.
www.test.com).  When I do that I get a 404 error.
But when I point to www.test.com/index.html the page comes right up.

I have a DirectoryIndex directive but it doesn't seem to be doing the job.
I have the LoadModule directive for module_dir before the DirectoryIndex
directive.

I tried to put a AddModule directive right after the LoadModule directive
but it gives me an error -- mod_dir.c is already loaded, skipping.

Your response is greatly appreciated Craig!


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of J. Craig Woods
Sent: Friday, December 06, 2002 9:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [expert] Directive Help in Apache


Okay, this is getting a bit confusing (could be my simple mind). You
want a index.html to open when *only* your domain name is put into the
url, right? For Mandrake, put this in your commonhttpd.conf file:

   DirectoryIndex  index.php index.html index.htm index.shtml

(and any other file type that might suit your fancy)

As for as loading a mod called "mod_log.c", uncomment the line in
httpd.conf that pertain to loading this module.

These two items are unrelated but this is what you can do with both
issues

drjung
--
J. Craig Woods
UNIX Network/System Administration
http://www.trismegistus.net/resume.html
Character is built upon the debris of despair --Emerson


Carter Harris wrote:
> In my httpd.conf, I have a directive AddModule mod_log.c; right now its
> commented out.
> When I uncomment it, a warning message is displayed saying it is already
> loaded.  Could it be that it is not loaded and therefore the
> DirectoryIndex directive is never getting executed since it is inside a
> ?
>
> Does the mod_dir.c run as its own process?
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of J. Craig Woods
> Sent: Friday, December 06, 2002 7:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [expert] Directive Help in Apache
>
>
>
> H. Carter Harris wrote:
>
>>I've been fooling with this for several days and I'm not making much
>>headway.  I could really use some expert help.
>>
>>I'm working my way through the ORielly book on Apache and they don't
>>set things up like Mandrake.  I don't want to mess up the Mandrake
>>conf because I want to go back to it later.  So I have a small website
>
>
>>setup for testing.
>>
>>I can't get the DirectoryIndex directive to work.  When I go to the
>>website I can't get the index.html page to display unless I type it as
>
>
>>part of the URL.  For example, I have to enter the URL
>>"http://www.domain.com/index.html"; in the browser and I should only
>>have to type "http://www.domain.com";.
>>
>>I have the LoadModule directive in for dir_module and the
>>DirectoryIndex was copied from the Mandrake installed httpd.conf.
>>Other directives in the conf file work fine.
>>
>
>
> Mandrake does have its peculiarities when it comes to Apache Web Server.
>
>   What file types are you listing with your "DirectoryIndex"? And what
> file is this entry being made in, commonhttpd.conf or httpd.conf ?
>
> drjung
>






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Directive Help in Apache

2002-12-06 Thread J. Craig Woods
Okay, this is getting a bit confusing (could be my simple mind). You 
want a index.html to open when *only* your domain name is put into the 
url, right? For Mandrake, put this in your commonhttpd.conf file:

  DirectoryIndex  index.php index.html index.htm index.shtml

(and any other file type that might suit your fancy)

As for as loading a mod called "mod_log.c", uncomment the line in 
httpd.conf that pertain to loading this module.

These two items are unrelated but this is what you can do with both 
issues

drjung
--
J. Craig Woods
UNIX Network/System Administration
http://www.trismegistus.net/resume.html
Character is built upon the debris of despair --Emerson


Carter Harris wrote:
In my httpd.conf, I have a directive AddModule mod_log.c; right now its
commented out.
When I uncomment it, a warning message is displayed saying it is already
loaded.  Could it be that it is not loaded and therefore the
DirectoryIndex directive is never getting executed since it is inside a
?

Does the mod_dir.c run as its own process?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of J. Craig Woods
Sent: Friday, December 06, 2002 7:32 AM
To: [EMAIL PROTECTED]
Subject: Re: [expert] Directive Help in Apache



H. Carter Harris wrote:


I've been fooling with this for several days and I'm not making much
headway.  I could really use some expert help.

I'm working my way through the ORielly book on Apache and they don't
set things up like Mandrake.  I don't want to mess up the Mandrake 
conf because I want to go back to it later.  So I have a small website



setup for testing.

I can't get the DirectoryIndex directive to work.  When I go to the
website I can't get the index.html page to display unless I type it as




part of the URL.  For example, I have to enter the URL
"http://www.domain.com/index.html"; in the browser and I should only 
have to type "http://www.domain.com";.

I have the LoadModule directive in for dir_module and the
DirectoryIndex was copied from the Mandrake installed httpd.conf.  
Other directives in the conf file work fine.



Mandrake does have its peculiarities when it comes to Apache Web Server.

  What file types are you listing with your "DirectoryIndex"? And what 
file is this entry being made in, commonhttpd.conf or httpd.conf ?

drjung




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] Directive Help in Apache

2002-12-06 Thread Carter Harris
In my httpd.conf, I have a directive AddModule mod_log.c; right now its
commented out.
When I uncomment it, a warning message is displayed saying it is already
loaded.  Could it be that it is not loaded and therefore the
DirectoryIndex directive is never getting executed since it is inside a
?

Does the mod_dir.c run as its own process?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of J. Craig Woods
Sent: Friday, December 06, 2002 7:32 AM
To: [EMAIL PROTECTED]
Subject: Re: [expert] Directive Help in Apache



H. Carter Harris wrote:
> I've been fooling with this for several days and I'm not making much
> headway.  I could really use some expert help.
> 
> I'm working my way through the ORielly book on Apache and they don't
> set things up like Mandrake.  I don't want to mess up the Mandrake 
> conf because I want to go back to it later.  So I have a small website

> setup for testing.
> 
> I can't get the DirectoryIndex directive to work.  When I go to the
> website I can't get the index.html page to display unless I type it as

> part of the URL.  For example, I have to enter the URL
> "http://www.domain.com/index.html"; in the browser and I should only 
> have to type "http://www.domain.com";.
> 
> I have the LoadModule directive in for dir_module and the
> DirectoryIndex was copied from the Mandrake installed httpd.conf.  
> Other directives in the conf file work fine.
> 

Mandrake does have its peculiarities when it comes to Apache Web Server.

  What file types are you listing with your "DirectoryIndex"? And what 
file is this entry being made in, commonhttpd.conf or httpd.conf ?

drjung
-- 
J. Craig Woods
UNIX Network/System Administration
http://www.trismegistus.net/resume.html
Character is built upon the debris of despair --Emerson









Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] Directive Help in Apache

2002-12-06 Thread Carter Harris
In the test environment I have setup I am only using the httpd.conf
file.  The test httpd.conf is very short.  I have a couple of LoadModule
lines (to create the access_log and mod_dir so I can use the
DirectoryIndex directive.  I could send a copy if you want.

The file types are the same as in the httpd.conf setup by Mandrake when
Apache was installed.  I copied the lines from there.  It is wrapped in
an If statement to verify that the mod_dir is loaded.





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of J. Craig Woods
Sent: Friday, December 06, 2002 7:32 AM
To: [EMAIL PROTECTED]
Subject: Re: [expert] Directive Help in Apache



H. Carter Harris wrote:
> I've been fooling with this for several days and I'm not making much 
> headway.  I could really use some expert help.
> 
> I'm working my way through the ORielly book on Apache and they don't 
> set things up like Mandrake.  I don't want to mess up the Mandrake 
> conf because I want to go back to it later.  So I have a small website

> setup for testing.
> 
> I can't get the DirectoryIndex directive to work.  When I go to the 
> website I can't get the index.html page to display unless I type it as

> part of the URL.  For example, I have to enter the URL 
> "http://www.domain.com/index.html"; in the browser and I should only 
> have to type "http://www.domain.com";.
> 
> I have the LoadModule directive in for dir_module and the 
> DirectoryIndex was copied from the Mandrake installed httpd.conf.  
> Other directives in the conf file work fine.
> 

Mandrake does have its peculiarities when it comes to Apache Web Server.

  What file types are you listing with your "DirectoryIndex"? And what 
file is this entry being made in, commonhttpd.conf or httpd.conf ?

drjung
-- 
J. Craig Woods
UNIX Network/System Administration
http://www.trismegistus.net/resume.html
Character is built upon the debris of despair --Emerson






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Directive Help in Apache

2002-12-06 Thread J. Craig Woods

H. Carter Harris wrote:

I've been fooling with this for several days and I'm not making much
headway.  I could really use some expert help.

I'm working my way through the ORielly book on Apache and they don't set
things up like Mandrake.  I don't want to mess up the Mandrake conf because
I want to go back to it later.  So I have a small website setup for testing.

I can't get the DirectoryIndex directive to work.  When I go to the website
I can't get the index.html page to display unless I type it as part of the
URL.  For example, I have to enter the URL
"http://www.domain.com/index.html"; in the browser and I should only have to
type "http://www.domain.com";.

I have the LoadModule directive in for dir_module and the DirectoryIndex was
copied from the Mandrake installed httpd.conf.  Other directives in the conf
file work fine.



Mandrake does have its peculiarities when it comes to Apache Web Server. 
 What file types are you listing with your "DirectoryIndex"? And what 
file is this entry being made in, commonhttpd.conf or httpd.conf ?

drjung
--
J. Craig Woods
UNIX Network/System Administration
http://www.trismegistus.net/resume.html
Character is built upon the debris of despair --Emerson


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] Directive Help in Apache

2002-12-05 Thread H. Carter Harris
I've been fooling with this for several days and I'm not making much
headway.  I could really use some expert help.

I'm working my way through the ORielly book on Apache and they don't set
things up like Mandrake.  I don't want to mess up the Mandrake conf because
I want to go back to it later.  So I have a small website setup for testing.

I can't get the DirectoryIndex directive to work.  When I go to the website
I can't get the index.html page to display unless I type it as part of the
URL.  For example, I have to enter the URL
"http://www.domain.com/index.html"; in the browser and I should only have to
type "http://www.domain.com";.

I have the LoadModule directive in for dir_module and the DirectoryIndex was
copied from the Mandrake installed httpd.conf.  Other directives in the conf
file work fine.

Thanking everyone in advance ... Carter





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com