2 # You should look at the following URL's in order to grasp a solid understanding
3 # of Nginx configuration files in order to fully unleash the power of Nginx.
4 # http://wiki.nginx.org/Pitfalls
5 # http://wiki.nginx.org/QuickStart
6 # http://wiki.nginx.org/Configuration
8 # Generally, you will want to move this file somewhere, and start with a clean
9 # file but keep this around for reference. Or just disable in sites-enabled.
11 # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
14 # Default server configuration
17 listen 80 default_server;
18 listen [::]:80 default_server;
22 # listen 443 ssl default_server;
23 # listen [::]:443 ssl default_server;
25 # Self signed certs generated by the ssl-cert package
26 # Don't use them in a production server!
28 # include snippets/snakeoil.conf;
32 # Add index.php to the list if you are using PHP
33 index index.php index.html index.htm index.nginx-debian.html;
38 # First attempt to serve request as file, then
39 # as directory, then fall back to displaying a 404.
40 try_files $uri $uri/ =404;
44 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
47 include snippets/fastcgi-php.conf;
49 # With php5-cgi alone:
50 #fastcgi_pass 127.0.0.1:9000;
52 fastcgi_pass unix:/var/run/php5-fpm.sock;
55 # deny access to .htaccess files, if Apache's document root
56 # concurs with nginx's one
64 # Virtual Host configuration for example.com
66 # You can move that to a different file under sites-available/ and symlink that
67 # to sites-enabled/ to enable it.
73 # server_name example.com;
75 # root /var/www/example.com;
79 # try_files $uri $uri/ =404;