ivan@ivan-desktop:/etc/apache2$ apache2 -v
Server version: Apache/2.2.4 (Ubuntu)
Server built: Oct 4 2007 22:47:20
U fajlu /etc/apache2/apache2.conf sam stavio AllowOverride All:
ivan@ivan-desktop:/etc/apache2$ less apache2.conf | grep AllowOverride
# for additional configuration directives. See also the AllowOverride
# AllowOverride All
Medjutim izgleda da mi .htaccess fajlovi i dalje ne rade. Napravio sam folder test i u njega stavio sledeci .htaccess fajl:
ivan@ivan-desktop:/var/www/test$ cat .htaccess
Deny from all
Ovo bi trebalo da blokira pristup folderu test iz browsvera (ako se ne varam), medjutim ja mogu normalno da pristupim ovom folderu i da dobijem listing fajlova koji se nalaze u njemu:
<<< Index of /test
Index of /test
[ICO] Name Last modified Size Description
__________________________________________________________________
[DIR] Parent Directory -
[TXT] 404.html 25-Oct-2007 12:20 46
[ ] all.php 26-Oct-2007 17:53 97
[ ] info.php 25-Oct-2007 12:10 20
[ ] kvadrati.php 25-Oct-2007 12:06 1.0K
[DIR] upload/ 27-Oct-2007 21:30 -
[ ] www.zip 21-Oct-2007 13:23 3.2M
__________________________________________________________________
Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6 Server at localhost Port 80
Gdje griješim, zašto i ne radi .htaccess?
Hvala!