Change the nginx config.

This commit is contained in:
jgen 2014-02-19 18:45:28 -05:00
parent f3c379b8db
commit bbaa9fc6f1

View file

@ -28,22 +28,21 @@ echo "
server {
listen 80;
server_name localhost 127.0.0.1 \"\";
server_tokens off;
root $1;
index index.php;
location ~ /_?(images|thumbs)/ {
default_type image/jpeg;
location / {
index index.php;
# For the Nice URLs in Shimmie.
if (!-e $request_filename) {
rewrite ^(.*)\$ /index.php?q=\$1 last;
break;
}
}
# For the Nice URLs in Shimmie.
#location / {
# if (!-e $request_filename) {
# rewrite ^(.*)$ /index.php?q=$1 last;
# break;
# }
#}
location ~ \.php($|/) {
location ~ \.php\$ {
try_files $uri =404;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;