"HansH" <hansh.DeleteThis@invalid.invalid> wrote in message
news:471f18ca$0$229$e4fe514c@news.xs4all.nl...
> "Peter" <me.DeleteThis@privacy.net> schreef in bericht
> news:13hu5th4qanma4e@corp.supernews.com...
>>>>> Can anyone tell me what is wrong with the below or a reason why this
>>>>> isnt taking effect.
>>>>>
>>>>> <Directory />
>>>>> Options FollowSymLinks
>>>>> AllowOverride None
>>>>> Order allow,deny
>>>> You're now protecting the root of your file system, unlikely being the
>>>> root of any site.
>>>>
>>>> Either use
>>>> <Directory /local/path/to/document/root >
>>>> or
>>>> <Location / >
>>>>
>> Sorry i realised my own tag mistake <Location >
>>
>> I am somewhat concerned now that my original directory config did not
>> take effect and location was needed. I am still unsure why this is.
>>
> http://httpd.apache.org/docs/2.2/mod/core.html#directory
> http://httpd.apache.org/docs/2.2/mod/core.html#location
>
> HansH
>
I am not that bad

. I had already RTFM
As a full example. Here is my Virtual host
DocumentRoot /usr/local/apache/share/site1
ServerName
www.site1
DirectoryIndex index.htm index.html index.php
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Deny from 202.*.*.*
</Directory>
The fact the document root is specified the <directory> tag should therefore
cover this directory and all its subdirectories and therefore deny of ip
202.*.*.* should take effect imo
>> Stay informed about: virtual hosts deny not working