Quantcast
Channel: Active questions tagged mac-osx-server - Server Fault
Viewing all articles
Browse latest Browse all 80

Apache2.4 Require IP not working because 127.0.0.1

0
0

I am trying to configure .htaccess on Apache 2.4 using Require ip X.X.X.X

The problem I am experiencing is that all requests appear to be coming from 127.0.0.1 and not the public IP of the request. I found through searching online that this is likely because of Caching or Proxying on the server.

The server is OS X Server, when I get forbidden on the server, the log shows my request came from 127.0.0.1 - but I am definitely not on the local host. Does apache to any proxying of that sort that could cause that?

The answer I found was:

  1. Turn off the performance cache in Server Admin -> Web -> Settings -> Sites -> Options This acts as a proxy server in front of Apache to improve performance of certain files. However, one side effect is that Apache sees the IP address of the proxy server not the IP address of the user. Performance cache or remote IP addresses. Pick one. You can't have both 🙂

Unfortunately, this is an old answer and there is no Server Admin -> Web -> Settings -> Sites -> Options anymore. Any guesses what this might be changing?


Viewing all articles
Browse latest Browse all 80

Latest Images

Trending Articles





Latest Images