Forum Moderators: phranque
<Directory /www/admin>
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /www/somefile
Require user admin
Order deny,allow
Deny from all
Allow from <my home ip address here>
</Directory>
This means that only i can access this directory from home and when i do i still have to enter username + passwd.
Now problem is that ive installed some software on the webserver that needs to respawn threads, by accessing files inside /www/admin
Now id like to configure it so that the server is granted access without entering username/passwd.
I could put in :
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /www/somefile
Require user admin
Order deny,allow
Deny from all
Satisfy any
allow from <my home ip> <my server ip>
But that means that i dont have to enter úsername/passwd when i access it from home (either satisfy ip condition or username + passwd). So thats not what i wanted.
In summary: Everyone needs to satisfy ip AND username+passwd except server ip that goes straight thru.
How do i do it?
Thanks in advance.