-
-
Save kylewm/79c28695d3ff981b2cf3 to your computer and use it in GitHub Desktop.
maybe a working install from nginx subdirectory?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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