0 Replies - 1101 Views - Last Post: 02 March 2009 - 01:45 PM

#1 k0b13r  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 15
  • View blog
  • Posts: 243
  • Joined: 18-July 06

Apache & mod_authz_host

Posted 02 March 2009 - 01:45 PM

Hi! I tried to block external access to some files on my localhost Apache server. I've found <Directory></Directory> directive with an example, so I tried it. Here's my .htaccess
<Directory /files>
	Order Deny,Allow
	Deny from all
	Allow from 127.0.0.1
</Directory>



But I get "500. Internal server error" and I can't find what's wrong ... Thanks for help in advice ;)

PS. My Apache server version is 2.2.11, and .htaccess is in DocumentRoot path

EDIT:
Ok, I'm dumb :| <Directory> is directive for httpd.conf file, not .htaccess ....

This post has been edited by k0b13r: 03 March 2009 - 09:09 AM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1