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?

2
  • you are so right! Thanks! I somehow thought this was a masking or redirecting thing... but it was just Wordpress setting links wrong.
    – tvooo
    Mar 8, 2012 at 9:53
  • 1
    @AD7six - maybe post that as an answer so sweenytimm can accept it Mar 8, 2012 at 9:58

1 Answer 1

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?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .