Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

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
1  
@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

 
discard

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.