Hi,

We have a server that runs drupal to keep track of all the important documentation. It works great on our network, we can access it just fine. However, we were looking to improve it so that we could also access it from a remote IP address. Most of the set up is ok, but drupal wont accept it. When we try to connect we get an error message saying

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403

cheers,

G

Comments

rtandon’s picture

The problem is not with drupal configuration. You should check your web server configuration. If the server is Apache then you should check for the config file httpd.conf and/or .htaccess files

The web server is not permitting the access from other IP address. Most likely it is via .htaccess files (if Apache) that access has been restricted.

Geran’s picture

ok, so what do I need to change exactly? (sorry if it's really obvious once you get there, I'm not at the server right now.)

Geran’s picture

can some one just tell me where I find this .htaccess file? this is very frustrating....

rernst’s picture

.htaccess files can be placed anywheres in a web server's directory: there's no magic one place we can tell you to look and expect you to find it. The 'Deny from' setting might also be in the web server's configuration file.

Your best bet is to contact the administrator(s) of the web server: they've apparently restricted access to the site from everything except a certain range of IPs. If it's an internal documentation server there's probably a good reason for this.

vidhi_jain’s picture

hi
Can you please tell me what the changes should be done in httpd.conf file as i am unable to access Drupal remotely.

Thanks

Fiable.biz’s picture

In Mageia2, the Apache configuration file is /etc/httpd/conf/http.conf . It includes a line
Include conf/webapps.d/*.conf
meaning that all conf/webapps.d/*.conf files are included as configuration files. One of them is /etc/httpd/conf/webapps.d/drupal.conf , the Apache configuration file for Drupal.
In it, I had the lines

  Order deny,allow
  Deny from all
  Allow from 127.1.0.0

denying access to all computers except the server itself (IP 127.1.0.0). I added a line:

  Order deny,allow
  Deny from all
  Allow from 127.1.0.0
  Allow from 192.168.1.0/24

to get access from the local network. To made it public, I could have replaced

  Allow from 127.1.0.0

by

  Allow from all

http://Fiable.biz Web site creation.