Why is .htaccess not allowed in a directory but is allowed in another?

Posted by JD Isaacks on Server Fault See other posts from Server Fault or by JD Isaacks
Published on 2011-01-06T17:30:48Z Indexed on 2013/11/09 4:01 UTC
Read the original article Hit count: 427

Filed under:
|

I have apache2 installed on ubuntu 10.4

inside my var/www/ directory [amung others] I have a cakephp and a dvdcatalog directories. Each of which have CakePHP 1.3 installed.

I can access them both via localhost/cakephp and localhost/dvdcatalog

But the dvdcatalog shows up with no css styling.

They both have these files:

/var/www/cakephp/app/webroot/css/cake.generic.css /var/www/dvdcatalog/app/webroot/css/cake.generic.css

But when I go to http://localhost/cakephp/css/cake.generic.css it sees the file but it does not see the file when I go to http://localhost/dvdcatalog/css/cake.generic.css

I think this means the cakephp folder is able to use .htaccess and the dvdcatalog is not.

I setup the cakephp directory last month when I was following in the blog tutorial. I am setting up the dvdcatalog directory now for a different tutorial. So I am not sure if I am missing a step.

in my /etc/apache2/apache2.conf file I have this:

<Directory "/var/www/*">
    Order allow,deny
    Allow from all
    AllowOverride All
</Directory>

Which I thought gave .htaccesss to all.

Does anyone have any ideas what the problem is?

© Server Fault or respective owner

Related posts about apache2

Related posts about .htaccess