Destroyed Using nginx with Szurubooru (markdown)
parent
8ec9aff2ea
commit
59220242f1
1 changed files with 0 additions and 43 deletions
|
@ -1,43 +0,0 @@
|
|||
Place this in your nginx configuration block. Configure as necessary.
|
||||
Here we are using PHP5 with PHP-FPM.
|
||||
|
||||
server {
|
||||
|
||||
listen 420;
|
||||
|
||||
root /path/to/your/installation;
|
||||
index dispatch.php
|
||||
|
||||
server_name www.example.com example.com;
|
||||
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
error_page 500 /dispatch.php?request=error/http&code=500;
|
||||
|
||||
error_page 404 /dispatch.php?request=error/http&code=404;
|
||||
|
||||
error_page 403 /dispatch.php?request=error/http&code=403;
|
||||
|
||||
autoindex off;
|
||||
|
||||
location / {
|
||||
if (!-e $request_filename){
|
||||
rewrite ^(.*)$ /dispatch.php;
|
||||
}
|
||||
rewrite ^/?$ /dispatch.php;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
# fastcgi_intercept_errors on;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
|
||||
}
|
||||
}
|
Reference in a new issue