Skip to content
Find file
795146e Oct 17, 2013
@ewanleith @level09
35 lines (25 sloc) 892 Bytes
server {
## Your website name goes here.
## Your only path reference.
root /var/www/;
listen 80;
## This should be in your http block and if it is, it's not needed here.
index index.html index.htm index.php;
include conf.d/drop;
location / {
# This is cool because no php is touched for static content
try_files $uri $uri/ /index.php?q=$uri&$args;
location ~ \.php$ {
fastcgi_buffers 8 256k;
fastcgi_buffer_size 128k;
fastcgi_intercept_errors on;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/dev/shm/php-fpm-www.sock;
location ~* \.(css|js|png|jpg|jpeg|gif|ico)$ {
expires 1d;
Something went wrong with that request. Please try again.