Forum Moderators: phranque
Here is the configuration i am testing:
<Directory /www/htdocs/>
Order Deny,Allow
Deny from 10.99.99.99
Deny from 10.99.99.100
</Directory>
Can you please help me to solve the aforementioned issue?
Thanks in advance
You haven't stated what your problem is although I believe I know. Have you read the Apache mod_access [httpd.apache.org] documentation? The manual pages are usually the best place to start and you'll find them invaluable soon. Pay particular attention to the directives you are using and the order you are using them. I think you'll see the issue right away.
thank you very much for your reply
I 've read multiple time the pages you mention.
I believe that i have understand the logic of deny-allow and my configuration is correct.
I expect to allow access only to 2 ips and permit access to anyone else but the result is not the expected...
Is there a syntax problem in my configuration?
thank you
The absence of an accompanying
Allowdirective means that the default access state is to allow access (access is allowed by default when the
Orderis
Deny,Allow). However, any requests from the two ip addresses specified in the Deny directives would be denied access.
You said that these updates were made in your httpd.conf file. You have to restart the Apache server every time you make changes to this file. If you have not yet restarted the server you must do so. Also, make sure you don't have any per-directory override files (.htaccess) in the path to the directory you are testing access to as they will override this httpd.conf setting.