Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

After installing nginx I can see that the homepage of my web server is changed with the default nginx page. How can I configure nginx now?

share|improve this question
configure nginx to do what exactly? See and – bodhi.zazen Dec 7 '13 at 18:32
I want to run nginx along with my LAMP server. I need to configure it to work. Now I am getting just the nginx default page when I go to localhost without being able to see the index.php page and other pages... – Farukh Dec 7 '13 at 19:08
We need more information. run with LAMP how ? to do what? php, static content, proxy ? – bodhi.zazen Dec 7 '13 at 19:27
I had installed LAMP on my ubuntu box. And then I have created a website and put it on the /var/www directory. After that when I go to localhost the web page shows properly. Then I heard about nginx which is like a caching software optimize website speed. Then I installed nginx from launchpad ppa. After that when I go to localhost it shows the default nginx page. I am now not able to open any of the pages of my website. When I try to open one the nginx default page comes. – Farukh Dec 7 '13 at 19:45
what is in /var/www now ? nginx is a web server, as is apache, and configuration in /var/www is the same for apache as nginx. – bodhi.zazen Dec 7 '13 at 19:47
up vote 1 down vote accepted

Nginx is a light weight and fast web server also you can use nginx fastcgi cache options to speedup your websites.

To configure nginx first you have to add set no of option in nginx like server_name and root path

You can try easyengine which install and configure nginx and all the dependency on one go.

Sample Config For Your Nginx is:

share|improve this answer

Your Answer


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.