I try to do this with require local and require valid-user but look like the require local override the valid-user. make the local acess don't need to authenticate
AuthName "Authenticate"
AuthType Basic
AuthUserFile "/home/tmp/.htpassword"
Require local
Require valid-user
When I remove the require local the authenticate is working. but it allow access from outside. So how to configure this so I can only allow local access with valid-user