tensaibakabon
Programmer
Hi everyone,
I have been trying to figure out how to properly log clients' ip addresses in apache's access log...
Server spec is as follows:
Redhat 9.0
Kernel 2.4.21
Apache 1.3.28
The server is behind a router that forwards its incoming requests to port 80 to port 80 of the server. The problem is that all the log entries in apache's access log are logged as requests coming from the router, and I get router's ip address for all the log entries...
If I check the client's access using netstat command, I also get router's ip address as the client's address for all the http connections.
But connections to other ports such as SSH(22), seem to log the right client's ip and not the address of the router(connection to ssh is also forwarded by the router).
I'm not sure if this is an apache related problem in the first place, but I've been looking around for a solution for a while now, and can't seem to find anything....
Any help/suggestions would be greatly appreciated.
Thanks in advance.
I have been trying to figure out how to properly log clients' ip addresses in apache's access log...
Server spec is as follows:
Redhat 9.0
Kernel 2.4.21
Apache 1.3.28
The server is behind a router that forwards its incoming requests to port 80 to port 80 of the server. The problem is that all the log entries in apache's access log are logged as requests coming from the router, and I get router's ip address for all the log entries...
If I check the client's access using netstat command, I also get router's ip address as the client's address for all the http connections.
But connections to other ports such as SSH(22), seem to log the right client's ip and not the address of the router(connection to ssh is also forwarded by the router).
I'm not sure if this is an apache related problem in the first place, but I've been looking around for a solution for a while now, and can't seem to find anything....
Any help/suggestions would be greatly appreciated.
Thanks in advance.