mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 02:01:58 +01:00
improved nginx config
This commit is contained in:
parent
db26a463d0
commit
fcd67da6d3
@ -23,13 +23,18 @@ server {
|
|||||||
root html;
|
root html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
fastcgi_index index.php;
|
if (!-f $document_root$fastcgi_script_name) {
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
return 404;
|
||||||
include fastcgi_params;
|
}
|
||||||
|
|
||||||
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
rewrite /search.php /index.php?route=search/search&type=simple;
|
rewrite /search.php /index.php?route=search/search&type=simple;
|
||||||
rewrite /advanced.php /index.php?route=search/search&type=advanced;
|
rewrite /advanced.php /index.php?route=search/search&type=advanced;
|
||||||
rewrite /expert.php /index.php?route=search/search&type=expert;
|
rewrite /expert.php /index.php?route=search/search&type=expert;
|
||||||
|
Loading…
Reference in New Issue
Block a user