Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.