httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Whitney" <>
Subject [users@httpd] vhost and Options directive problems
Date Tue, 15 Oct 2002 22:04:30 GMT

hello, I don't mean to be a bother :-), but I'm having trouble with 'index 
of /' ; I searched the apache docs, user

groups, and the mailing list...what do we do to just serve up 
'index.html'?Removing 'Index' from the"Options'

directive causes an error(?)...

I am running w2kpro, w/adsl connection, and have a dynamic IP solution. When 
I edited my conf to remove 'Index'

from Options, I opened my browser and went to my site. I got the apache 
error page,"FORBIDDEN", tried

several times, same result. This is what posted to my error log:

     [Tue Oct 15 09:19:32 2002] [error] [client] Directory 
index forbidden by rule: C:/Program

      Files/Apache Group/Apache2/htdocs/

Why would I need permission to access a website? My conf for global reads:

  UseCanonicalName Off
  DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"

  <Directory />
  Options FollowSymLinks
  AllowOverride none

  <Directory "C:/Program Files/Apache Group/Apache2/htdocs">
  Options Indexes FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all

...seems to me that 'allow from all' covers that(?).

I'm having trouble w/ vhost, too, since we have dynamic IP, I used the 
wildcard for namevirtualhost,(*), do I

understand this?
I researched this heavily,too, and still not working. Further, when I try to 
start apache after the edit, I get an error


     " The requested operation has failed! "

I tried uncommenting all the directives in the vhost block, one at a time, 
restarting after each save, and found that

the DocumentRoot Directory line was causing the problem. This is my conf:

NameVirtualHost *

<VirtualHost *>
DocumentRoot Directory /htdocs/
ErrorLog logs/
CustomLog logs/ common
</VirtualHost> there an obvious error here? I'm not sure of the syntax, or whether I 
understand the description from doc:

[ This directive sets the directory from which httpd will serve files. 
Unless matched by a directive like Alias, the

[ server appends the path from the requested URL to the document root to 
make the path to the document.
[ Example:
[ DocumentRoot /usr/web
[ then an access to refers to 
[ There appears to be a bug in mod_dir which causes problems when the 
DocumentRoot has a trailing slash
[ (i.e., "DocumentRoot /usr/web/") so please avoid that.

...[example of my(?) understanding of 
this]...request: is received, and the path

is completed with what I enter for DocumentRoot Directory...( I know that 
I'm reading from the wrong doc from

apache, all I could find).

Sorry for the long post, hope I don't seem TOO ignorant, and you have all 
the free musical support you'll ever
need from this moment on!
Thank you in advance,
Michael Whitney

Surf the Web without missing calls! Get MSN Broadband.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message