Skip to content

Instantly share code, notes, and snippets.

@steffen-wirth
Created June 25, 2024 08:07
Show Gist options
  • Save steffen-wirth/a2de774bbfc45e3f9fd9623e0c6b11b3 to your computer and use it in GitHub Desktop.
Save steffen-wirth/a2de774bbfc45e3f9fd9623e0c6b11b3 to your computer and use it in GitHub Desktop.
AuthType Basic
AuthName 'Authentication required'
AuthUserFile /www/htdocs/meinpfad/.htpasswd
# Allow access to excluded diretories
SetEnvIf Request_URI /api noauth=1
Require env noauth
Require env REDIRECT_noauth
Require valid-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment