Reputation: 2844
I have some difficulties to understand the apache variables described in here:
https://httpd.apache.org/docs/2.4/expr.html#vars
What I need to use in my directive:
The IP of the webserver the apache is running on
The IP of the client trying to access the server
The URL (string) the client is trying to access
Alternatively, a boolean telling me whether the current request is coming from the server itself
As far as I understand, REMOTE_ADDR must be the client's IP. But where is the Servers ID hidden? SERVER_ADDR does not exist...
Upvotes: 0
Views: 928
Reputation: 113
SERVER_ADDR
depending if your server provide it, else try HTTP_HOST
REMOTE_ADDR
REQUEST_FILENAME
/REQUEST_URI
Upvotes: 1