You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Liz Kim <li...@gmail.com> on 2008/01/17 20:42:22 UTC

[users@httpd] DocumentRoot cannot be domain protected?

Is there a special way of domain/IP protecting the DocumentRoot directory?
All I am trying to do is:

order allow,deny
allow from all
deny from MY_IP_ADDRESS_HERE

When this is put under any other directory, it successfully denies me
access.
However, when it's is put under the DocumentRoot directory, it fails.

Any ideas?

Thanks!

Re: [users@httpd] DocumentRoot cannot be domain protected?

Posted by Krist van Besien <kr...@gmail.com>.
On Jan 17, 2008 8:42 PM, Liz Kim <li...@gmail.com> wrote:
> Is there a special way of domain/IP protecting the DocumentRoot directory?
> All I am trying to do is:
>
> order allow,deny
> allow from all
> deny from MY_IP_ADDRESS_HERE
>
> When this is put under any other directory, it successfully denies me
> access.
> However, when it's is put under the DocumentRoot directory, it fails.

With "put this under a directory" do you mean that you put it in a
".htaccess" file within the directory, or do you put it within a
<directory> block in your httpd.conf? Could you show us your
httpd.conf?

Krist


-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org