Change the nginx config.
This commit is contained in:
parent
f3c379b8db
commit
bbaa9fc6f1
1 changed files with 10 additions and 11 deletions
|
@ -28,22 +28,21 @@ echo "
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost 127.0.0.1 \"\";
|
server_name localhost 127.0.0.1 \"\";
|
||||||
|
server_tokens off;
|
||||||
root $1;
|
root $1;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
location ~ /_?(images|thumbs)/ {
|
location / {
|
||||||
default_type image/jpeg;
|
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 ~ \.php\$ {
|
||||||
#location / {
|
try_files $uri =404;
|
||||||
# if (!-e $request_filename) {
|
|
||||||
# rewrite ^(.*)$ /index.php?q=$1 last;
|
|
||||||
# break;
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
|
||||||
location ~ \.php($|/) {
|
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
|
Reference in a new issue