Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I own a domain, let's say, and I point an A record to my server with IP, running nginx. When I open 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?

share|improve this question
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 '12 at 9:53
@AD7six - maybe post that as an answer so sweenytimm can accept it – Mark Henderson Mar 8 '12 at 9:58
righteho @MarkHenderson, thanks for the impetus – AD7six Mar 8 '12 at 10:03

1 Answer 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?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.