Fix the nginx config.
This commit is contained in:
parent
b56f006b28
commit
ec3804ceb8
@ -31,18 +31,26 @@ server {
|
|||||||
listen 80 default;
|
listen 80 default;
|
||||||
|
|
||||||
root $SHIMMIE_ROOT/;
|
root $SHIMMIE_ROOT/;
|
||||||
|
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
location ~ /_?(images|thumbs)/ {
|
location ~ /_?(images|thumbs)/ {
|
||||||
default_type image/jpeg;
|
default_type image/jpeg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# For the Nice URLs in Shimmie.
|
||||||
|
location / {
|
||||||
|
if (!-e $request_filename) {
|
||||||
|
rewrite ^(.*)$ /index.php?q=$1 last;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php($|/) {
|
location ~ \.php($|/) {
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_param PATH_INFO $fastcgi_script_name;
|
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_read_timeout 600;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
" | sudo tee $NGINX_CONF > /dev/null
|
" | sudo tee $NGINX_CONF > /dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user