1 user www-data www-data;
6 worker_connections 768;
11 default_type application/octet-stream;
14 index index.html index.php;
18 root /var/www/shaarli;
20 access_log /var/log/nginx/shaarli.access.log;
21 error_log /var/log/nginx/shaarli.error.log;
24 # add a PHP info page for convenience
25 fastcgi_pass unix:/var/run/php5-fpm.sock;
26 fastcgi_index index.php;
27 fastcgi_param SCRIPT_FILENAME /var/www/index.php;
28 include fastcgi_params;
32 # deny access to dotfiles
39 # deny access to temp editor files, e.g. "script.php~"
45 location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
48 add_header Pragma public;
49 add_header Cache-Control "public, must-revalidate, proxy-revalidate";
52 location ~ (index)\.php$ {
53 # filter and proxy PHP requests to PHP-FPM
54 fastcgi_pass unix:/var/run/php5-fpm.sock;
55 fastcgi_index index.php;
60 # deny access to all other PHP scripts