1

i am running a ec2 instance, and I had a wordpress blog on that server for domain#1.

Today I pointed domain#2, setup the directory and nginx etc.

Going to www.domain#2.com I am seeing the content for domain#1.

What do I have to do so each domain is mapped correctly? I thought that was what the nginx file was for that I created for each domain?

2
  • How did you add domain#2 to the nginx config?
    – Sim
    Jun 7, 2010 at 4:25
  • not to the config sorry, but to the available-sites and enabled-sites symbolic link.
    – Blankman
    Jun 7, 2010 at 14:06

2 Answers 2

1

Virtual Hosts are your friend.

http://wiki.nginx.org/NginxVirtualHostExample

2
  • i did this, except I have 2 files that, one for each domain in my available-sites.
    – Blankman
    Jun 7, 2010 at 15:02
  • are the files actually included into the running configuration? what happens when you paste them into the main config as one file?
    – user15590
    Jun 8, 2010 at 8:54
1

You have to put the domain#2 top of the domain#1 in your config

You must log in to answer this question.

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