Trying to configure domain-based access via htaccess file.

Posted by kenja on Server Fault See other posts from Server Fault or by kenja
Published on 2010-04-03T00:03:48Z Indexed on 2010/04/03 0:13 UTC
Read the original article Hit count: 599

Filed under:
|

I've created an account with no-ip.com that registers my ip with a subdomain of their service. When I do an nslookup, I see that the service is working and that my domain is being shown.

Now I want to provide access to that subdomain on the admin site of our server which is protected by htaccess IP restrictions. When I try to add the new domain to my script it does not work. Am I doing something wrong? I'm basically trying to make my laptop so it can log in from no matter when I'm at while still preventing all other IPs from accessing the site.

## password begin ##
AuthName     "Restricted Access"
AuthUserFile /usr/www/users/site/.passwd
AuthType     Basic
Require valid-user
Order deny,allow
Deny from all
Allow from 69.1.122.161 mysubdomain.no-ip.org
Satisfy All

© Server Fault or respective owner

Related posts about .htaccess

Related posts about apache