Backgrounds
As a windows client is needed for my testbed, I have to install windows system into a server which is runing a ubuntu os already.
This post is mainly a remainder for the encountered problems while I was installing win7.  
As a windows client is needed for my testbed, I have to install windows system into a server which is runing a ubuntu os already.
This post is mainly a remainder for the encountered problems while I was installing win7.  
By default, Nginx will be installed in /usr/local/nginx.
./configure  
make  
make install  
The configuration file is /usr/local/nginx/conf/nginx.conf.
Here is an
excellent simple tutorial, and here
is a full example.
If you want to show all the files in the root directory, you can turn
on autoindex like this:  
location / {  
    autoindex on;  
    root /home;  
}  
/usr/local/nginx/sbin/nginx          //start nginx  
/usr/local/nginx/sbin/nginx -s quit  //stop nginx  
If you do not need the rewrite module and gzip module, you can ignore the
errors with PCRE and gzip when configuring.