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.

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 wiki.nginx.org/Install and help.ubuntu.com/community/Nginx –  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

1 Answer 1

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

share|improve this answer

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.