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?

  • configure nginx to do what exactly? See wiki.nginx.org/Install and help.ubuntu.com/community/Nginx – Panther 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 ? – Panther 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. – Panther Dec 7 '13 at 19:47

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: https://github.com/rtCamp/easyengine/blob/master/usr/share/easyengine/nginx/php/basic.conf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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