mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-09 16:02:09 +08:00
@@ -8,7 +8,14 @@ events {
|
||||
worker_connections 65535;
|
||||
}
|
||||
|
||||
http {
|
||||
http {<!--
|
||||
|
||||
✔ PHP backup --><span ng-if="isPHPBackup()">
|
||||
upstream php {
|
||||
server {{ data.php_server[0] === '/' ? 'unix:' : '' }}{{ data.php_server }};
|
||||
server {{ data.php_server_backup[0] === '/' ? 'unix:' : '' }}{{ data.php_server_backup }} backup;
|
||||
}
|
||||
</span>
|
||||
charset utf-8;
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
try_files $uri =404;
|
||||
|
||||
# fastcgi
|
||||
fastcgi_pass {{ data.php_connection[0] === '/' ? 'unix:' : '' }}{{ data.php_connection }};
|
||||
fastcgi_pass {{ !isPHPBackup() ? ((data.php_server[0] === '/' ? 'unix:' : '') + data.php_server) : 'php' }};
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
Reference in New Issue
Block a user