Re: Stats when Server not public-facing

26 views
Skip to first unread message
Message has been deleted

vince

unread,
Aug 22, 2020, 2:51:15 PM8/22/20
to weewx-user
On Saturday, August 22, 2020 at 11:42:00 AM UTC-7, dmpa...@gmail.com wrote:
Thsi means that every connection in the httpd log comes from 192.168.1.14.  This also means that if I want to get logs, I'm going to have to get awstats on the main server, and tell it only to bother with connections going to 192.168.1.17.  


If you reverse proxy, your webserver thinks all traffic came from the proxy server, so yes you need to get logs from the proxy server to know where the requests are really coming from.  And yes it's an apache question, not a weewx question. 

David Lee

unread,
Aug 22, 2020, 11:04:30 PM8/22/20
to weewx...@googlegroups.com
Have a look at the X-Forwarded-For HTTP header field. You should be able to use this to get the real client IP address into your backend webserver logs..
--
David
Reply all
Reply to author
Forward
0 new messages