ServerName reviewpatch.yourcompany.com UnsetEnv using_api_key SetEnvIf Authorization "^Bearer " using_api_key # You may also use other authentication methods AuthType Basic # For the Web interface Require valid-user # For the command-line interface Require env using_api_key # Sanitize incoming HTTP request headers RequestHeader unset "Authorization" env=!using_api_key RequestHeader unset "X-Remote-User" # Please run reviewpatch server with --username-header "X-Remote-User" RequestHeader set "X-Remote-User" "%{REMOTE_USER}s" env=!using_api_key # Uncomment if using mod_auth_openidc # # OIDCUnAuthAction 401 # # Uncomment if using Prometheus # # AuthType None # Require ip 127.0.0.0/8 # # Uncomment if using Prometheus # # AuthType None # Require ip 127.0.0.0/8 # ProxyPass "/" "http://localhost:9999/" ProxyPassReverse "/" "http://localhost:9999/" Proxy100Continue Off