Forum Moderators: phranque
I set up a directory with SSL access only, and also require valid login:
SSLRequireSSL
AuthType Basic
AuthName "Restricted Area"
AuthUserFile "path_to_passwd_file"
require valid-user
However, now I want to run a php script in that directory via cron (via wget). Thus, I want to allow access from my host to bypass login. Easy enough:
Order deny,allow
Deny from all
Allow from 72.22.80.122
Satisfy Any
This works...except the SSLRequireSSL is now ignored. The login pops up when access page with http, rather than getting Forbidden error as before. Is there a way to always require SSL, but also require either valid-user or 'allow'?
Thanks for any advice. I realize this may be simple, but I didn't see anything specifically targeting this issue (or, I missed it) on htaccess explanation sites.
Unfortunately, given the VPS server configuration, this solution would not work for me (at least not in any sane way). I punted and moved the script in question out of protected area.