I'm using Apache 2.4 as a reverse proxy for Jenkins (a web service running locally on port 8080). I'm trying to limit access to this service to an internal network using Require. My VirtualHost:
<VirtualHost *:443> ServerName jenkins.domain.com ServerAdmin ... SSLEngine on ... <Location /> <RequireAny> Require ip 127.0.0.1 Require ip ::1 Require ip 10.8.0 </RequireAny> </Location> ProxyRequests Off ProxyPreserveHost On AllowEncodedSlashes NoDecode ProxyPass / http://localhost:8080/ nocanon ProxyPassReverse / http://localhost:8080/ ProxyPassReverse / http://jenkins.domain.com/ RequestHeader set X-Forwarded-Proto "https" RequestHeader set X-Forwarded-Port "443" </VirtualHost> Somehow this makes the service unavailable to everyone, including clients with trusted IPs like 10.8.0.1. What am I doing wrong?