0

I own a domain, let's say example.com, and I point an A record to my server with IP 123.123.123.123, running nginx. When I open example.com in a browser, I get to the correct site, but all links point to the IP instead of the domain.

What am I doing wrong? Is this a web server issue?

tvooo
  • 103
  • 1
  • 1
  • 5

1 Answers1

1

nginx isn't (directly) responsible for how links are rendered in your html pages.

why not just use /foo instead of http://<some variable>/foo in your php files?

AD7six
  • 2,920
  • 2
  • 21
  • 23