Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed Nginx on my Ubuntu Server 12.10 using this instructions https://www.digitalocean.com/community/articles/how-to-install-nginx-on-ubuntu-12-04-lts-precise-pangolin , the Nginx was installed from ppa:nginx/stable(I've added the ppa first, than updated and then installed using those instructions).

The page I get looks like this enter image description here

I tried all kind of configurations from the internet and I can't configure it right.
If you could also tell me how to set-up the node.js(I have it installed, I tested it and it works but I don't know how to configure it in Nginx) in here that would be a plus :)

share|improve this question
add comment

1 Answer 1

I always install nginx from source and write every option I need by hand, so I'm not sure where is it installed with this ready to use package, but i think /etc/nginx/

so open the nginx directory and open the default virtual host (get the virtual host file name by opening the nginx.conf file)

with the virtual host file look for location ~ "path here" that is your public web directory paste in .html page there and access it for test by any web browser.

And "welcome to nginx" it's just a html page, if you can access the web server using any web browser and works without this page this doesn't mean your installation is wrong.

share|improve this answer
1  
I solved the problem. I had a wrong "server_name" set, after I changed it, it worked... –  Lilian A. Moraru Apr 18 '13 at 0:38
    
@LilianA.Moraru Please, write a new answer and mark it as accepted. Thanks –  Lucio Nov 2 '13 at 3:13
add comment

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.