diff options
Diffstat (limited to 'automated/linux/lemp/debian-nginx.conf')
-rw-r--r-- | automated/linux/lemp/debian-nginx.conf | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/automated/linux/lemp/debian-nginx.conf b/automated/linux/lemp/debian-nginx.conf new file mode 100644 index 0000000..3e3e3e7 --- /dev/null +++ b/automated/linux/lemp/debian-nginx.conf @@ -0,0 +1,17 @@ +server { + listen 80 default_server; + listen [::]:80 default_server; + + root /usr/share/nginx/html; + index index.php index.html index.htm; + server_name localhost; + + location / { + try_files $uri $uri/ =404; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/var/run/php5-fpm.sock; + } +} |