0

I'm new to AWS and just created an AWS EC2 instance using Ubuntu to host a website. The website is up and running but whenever I got in /var/log/apache2 to view the access.log file, it shows the public ip address when I access the site on my phone and computer, meaning I can't differentiate between the two devices.

How can I get it to show my PC IP and phone IP address instead of using public IP address?

itsTed
  • 1
  • AWS has no visiblity into your network. Your devices would need separate public IPs for AWS to see them as such. – ceejayoz Jun 08 '22 at 18:58
  • is there not a way to log the client ip address? – itsTed Jun 08 '22 at 19:17
  • 1
    The client IP address is the same for all devices on your home network. Configure apache to log the user agent if you need to know what device is accessing the website. – Tim Jun 08 '22 at 23:06

0 Answers0