Are you Restricting Access through your Configuration Files?


It's possible that your configurations are set up to deny access from the files you are trying to serve.

In Apache, this would be configured in the virtual host file for that site, or through an .htaccess file located in the directory itself.

Within these files, it is possible to restrict access in a few different ways. Directories can be restricted like this in Apache 2.4:

    AllowOverride None
    Require all denied

This line is telling the web server not to let anybody access the contents of this directory. In Apache 2.2 and below, this would be written like this:

    AllowOverride None
    Order deny,allow
    Deny from all

If you find a directive like this for the directory containing the content you are trying to access, this will prevent your success.

In Nginx, these restrictions will take the form of deny directives and will be located in your server blocks or main config files:

location /usr/share {
    deny all;

asked Jun 9, 2015 in LINUX by rajesh
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.