Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changed the AllowOverride to All and still nothing

I tried to write a .htaccess file on my local pc's website,
I've realized I need to set AllowOverride All instead of None searched, found the file /etc/apache2/conf.d/security in the file I found

#<Directory />
#AllowOverride None
#Order Deny,Allow
#Deny from all
#</Directory>

changed it to

<Directory />
    AllowOverride All
    Order Deny,Allow
    Deny from all
</Directory>

typed

service apache2 restart

and... .htaccess still didn't work :I

the file by the way, holds one line, deny from all.

like image 415
Asaf Avatar asked Jun 08 '10 16:06

Asaf


1 Answers

Answer from original poster:

Finally found the right place: /etc/apache2/sites-available/default search for the

<directory /var/www/>  part, and changed it to:

<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>
like image 90
Trott Avatar answered Sep 28 '22 08:09

Trott