Skip to content

Instantly share code, notes, and snippets.

@kylewm
Created November 9, 2015 21:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylewm/79c28695d3ff981b2cf3 to your computer and use it in GitHub Desktop.
Save kylewm/79c28695d3ff981b2cf3 to your computer and use it in GitHub Desktop.
maybe a working install from nginx subdirectory?
location /blog/ {
try_files $uri $uri/index.html /blog/index.php?$query_string;
}
location / {
try_files $uri $uri/index.html @redwind;
}
location /foaf.rdf {
default_type "application/rdf+xml";
#add_header Access-Control-Allow-Origin "*";
}
location @redwind {
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.sock;
uwsgi_param UWSGI_SCHEME $scheme;
}
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment