You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dmitry Medvedev <me...@rsdsoft.msk.ru> on 2002/10/07 14:39:01 UTC
[users@httpd] DirectoryIndex problem
Good day to all.
I've got a problem: in addition to the main server configuration I defined
IP based virtual hosts in an included file as follows:
VirtualDocumentRootIP D:/.sites/2043/%0/%p/www
VirtualScriptAliasIP D:/.sites/2043/%0/%p/cgi-bin
DirectoryIndex index.phtml index.php index.shtml index.html
AddType text/html .shtml
AddHandler server-parsed .shtml
...And I constantly get the 403 error (Access forbidden! You don't have
permission to access the requested directory. There is either no index
document or the directory is read-protected.)
PS: I also tried to define settings like this (with no success either):
<Directory D:/.sites/2043/*/www>
Options +Includes +FollowSymLinks +Indexes
AllowOverride Options
Order Allow,Deny
Allow from all
AddOutputFilter Includes shtml
DirectoryIndex index.phtml index.php index.shtml index.html
</Directory>
Any suggestions? Thanks in advance,
Dmitry.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] DirectoryIndex problem
Posted by Robert Andersson <ro...@profundis.nu>.
Dmitry Medvedev wrote:
> Thank you for your help, Robert.
> One question left, anyway, what did you mean by "server-wide config"?
I simply meant not in any VirtualHost (or other) block; the "server-wide" or
"default" config.
I usually have my DirectoryIndex where it is in a fresh httpd.conf.
Regards,
Robert Andersson
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] DirectoryIndex problem
Posted by Dmitry Medvedev <me...@rsdsoft.msk.ru>.
Thank you for your help, Robert.
One question left, anyway, what did you mean by "server-wide config"?
Regards,
Dmitry.
----- Original Message -----
From: "Robert Andersson" <ro...@profundis.nu>
To: <us...@httpd.apache.org>
Sent: Thursday, October 10, 2002 9:06 AM
Subject: Re: [users@httpd] DirectoryIndex problem
> What are the name of the directory's index file? And, it do work if you
> address the index file explicitly, right?
>
> It looks like you're using mod_vhost_alias, and perhaps it doesn't work
well
> with DirectoryIndex (although it should). I have always seen and used
> DirectoryIndex only in the server-wide config, and that I would suggest
> you'd try.
>
> PS. If you host other people's web sites, a good idea would be to also put
> index.htm in the list, as some people like to use that.
>
> Regards,
> Robert Andersson
>
>
> ----- Original Message -----
> From: "Dmitry Medvedev" <me...@rsdsoft.msk.ru>
> To: <us...@httpd.apache.org>
> Sent: Monday, October 07, 2002 2:39 PM
> Subject: [users@httpd] DirectoryIndex problem
>
>
> > Good day to all.
> > I've got a problem: in addition to the main server configuration I
defined
> > IP based virtual hosts in an included file as follows:
> >
> > VirtualDocumentRootIP D:/.sites/2043/%0/%p/www
> > VirtualScriptAliasIP D:/.sites/2043/%0/%p/cgi-bin
> > DirectoryIndex index.phtml index.php index.shtml index.html
> > AddType text/html .shtml
> > AddHandler server-parsed .shtml
> >
> > ...And I constantly get the 403 error (Access forbidden! You don't have
> > permission to access the requested directory. There is either no index
> > document or the directory is read-protected.)
> >
> > PS: I also tried to define settings like this (with no success either):
> > <Directory D:/.sites/2043/*/www>
> > Options +Includes +FollowSymLinks +Indexes
> > AllowOverride Options
> > Order Allow,Deny
> > Allow from all
> > AddOutputFilter Includes shtml
> > DirectoryIndex index.phtml index.php index.shtml index.html
> > </Directory>
> >
> > Any suggestions? Thanks in advance,
> > Dmitry.
> >
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] DirectoryIndex problem
Posted by Robert Andersson <ro...@profundis.nu>.
What are the name of the directory's index file? And, it do work if you
address the index file explicitly, right?
It looks like you're using mod_vhost_alias, and perhaps it doesn't work well
with DirectoryIndex (although it should). I have always seen and used
DirectoryIndex only in the server-wide config, and that I would suggest
you'd try.
PS. If you host other people's web sites, a good idea would be to also put
index.htm in the list, as some people like to use that.
Regards,
Robert Andersson
----- Original Message -----
From: "Dmitry Medvedev" <me...@rsdsoft.msk.ru>
To: <us...@httpd.apache.org>
Sent: Monday, October 07, 2002 2:39 PM
Subject: [users@httpd] DirectoryIndex problem
> Good day to all.
> I've got a problem: in addition to the main server configuration I defined
> IP based virtual hosts in an included file as follows:
>
> VirtualDocumentRootIP D:/.sites/2043/%0/%p/www
> VirtualScriptAliasIP D:/.sites/2043/%0/%p/cgi-bin
> DirectoryIndex index.phtml index.php index.shtml index.html
> AddType text/html .shtml
> AddHandler server-parsed .shtml
>
> ...And I constantly get the 403 error (Access forbidden! You don't have
> permission to access the requested directory. There is either no index
> document or the directory is read-protected.)
>
> PS: I also tried to define settings like this (with no success either):
> <Directory D:/.sites/2043/*/www>
> Options +Includes +FollowSymLinks +Indexes
> AllowOverride Options
> Order Allow,Deny
> Allow from all
> AddOutputFilter Includes shtml
> DirectoryIndex index.phtml index.php index.shtml index.html
> </Directory>
>
> Any suggestions? Thanks in advance,
> Dmitry.
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org