httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Reed <>
Subject Re: [users@httpd] AccessFileName not allowed here
Date Tue, 20 Jul 2010 08:03:00 GMT
>From apache docs...

AccessFileName Directive

Description:    Name of the distributed configuration file
Syntax:    AccessFileName filename [filename] ...
Default:    AccessFileName .htaccess
Context:    server config, virtual host
Status:    Core
Module:    core

server config
This means that the directive may be used in the server configuration files
(e.g., httpd.conf), but not within any <VirtualHost> or <Directory>
containers. It is not allowed in .htaccess files at all.
virtual host
This context means that the directive may appear inside <VirtualHost>
containers in the server configuration files.

Therefore, you CANNOT use it in a <Directory> definition.  It's that simple.
You are putting it in the wrong bloody place.

On 7/20/10 12:39 AM, "Tapas Mishra" <> wrote:

> While I am restarting apache I am getting following error
> AccessFileName not allowed here
> I am using Ubuntu 10.04
> following is my vhost configuration
> <VirtualHost *:80>
>         ServerAdmin webmaster@localhost
>         ServerName
>         DocumentRoot /var/www
>         <Directory />
>                 Options FollowSymLinks
>                 AllowOverride None
>         </Directory>
> <Directory /var/www >
>                 Options Indexes FollowSymLinks MultiViews
>                 AllowOverride All
>                 AccessFileName .htaccess
>                 Order allow,deny
>                 allow from all
>         </Directory>
> </VirtualHost>
> I searched this error but could not get any thing useful what should I
> look in or do ?
> in apache2.conf I see AccessFileName .htaccess
> can this directive be not at two files
> I have checked this page

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