Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm diving into web development but I'm having troubles getting Nginx to work on my Ubuntu-OS computer. Firstly, localhost in my browser brings up an "Unable to Connect" page. I tried restarting Nginx and here's what I got:

Restarting nginx: nginx: [emerg] unknown directive "pass" in /etc/nginx/sites-enabled/default:62
nginx: configuration file /etc/nginx/nginx.conf test failed

I actually had it working yesterday where the page said "Welcome to Nginx" except the only problem then was that I couldn't get the phpinfo page to show up. I probably dwindled too much with the installation and configuration process. Any help would be appreciated.

share|improve this question

closed as not a real question by ceejayoz, Dave M, mdpc, Khaled, Michael Hampton Feb 2 '13 at 22:40

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

You should post the relevant part of your nginx configuration. – Michael Hampton Feb 1 '13 at 19:45
unknown directive "pass" in /etc/nginx/sites-enabled/default:62

Your configuration is invalid, with the problem being on line 62 of that file. There is no pass directive -- you probably want proxy_pass or fastcgi_pass.

share|improve this answer

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