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

For the first time today, I am trying to run Nginx. I have to run 2 websites built in Symfony 1.4 and Symfony 2.1. The nginx configuration file is http://pastebin.com/rFBqBaaM. The server blocks are http://pastebin.com/KZjfdYrY for site1 and http://pastebin.com/fpscrLx2 for site2.

I do not have a domain for site2 yet so I am using an Alias to access this. However, whenever I try to visit either site1 or site2, I see site1 on both the URLs.

share|improve this question

1 Answer 1

look for the default.conf file in /etc/nginx/conf.d directory or where you have your virtual hosts file reside.

if it's not there make a one and put the default options like document root and server_name. etc etc..

share|improve this answer
    
Thanks for your suggestion. I have managed to make it work, though it still follows the same procedure, I simply modified my virtualhost config files. I am not sure but maybe it was some Symfony specific regular expression or location directive for PHP that was causing the problem. Thanks for your help though. I have listed all the steps taken in a blog post at goo.gl/VZCoq –  gentrobot Dec 3 '12 at 5:15

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.