>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" <mightydreams@xxxxxxxxx> 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 somesite.com > 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 > http://httpd.apache.org/docs/2.2/mod/core.html > --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx