Mod Access not giving access to directory

Discussion in 'Apache' started by boumbo, Aug 19, 2007.

  1. #1
    I am trying to modify mod_access in apache2 using Ubuntu Server in order to allow only certain ips to access a directory.

    The following was added in /etc/apache2/sites-available/default

    <Directory /var/www/phpmyadmin>
                                 Order deny,allow
                                 deny from all
                                 allow from 172.16.1.7/255.255.240.0
    
    </Directory>
    
    Code (markup):
    As 172.16.1.7 is the internal access to the server and 255.255.240.0 is the subnet mask

    Unfortunately, when connected through VPN to the server I am not given access to this directory when going to: 172.16.1.7/phpmyadmin. I can access 172.16.1.7/phpmyadmin from any pc ONLY when I am in the office where the server is installed.

    I am not sure if this is a firewall issue or this its my directive that isn't well written.

    Any help would be appreciated.

    Best Regards,
    Pat.
     
    boumbo, Aug 19, 2007 IP