|
|
@ -6,6 +6,10 @@ upstream php74 { |
|
|
|
server php74:9000; |
|
|
|
} |
|
|
|
|
|
|
|
upstream php81 { |
|
|
|
server php81:9000; |
|
|
|
} |
|
|
|
|
|
|
|
map $http_host $root { |
|
|
|
octobercms.local.wpstudio.ru /usr/share/nginx/html/someproject; |
|
|
|
wordpress.local.wpstudio.ru /usr/share/nginx/html/someprojectwp; |
|
|
@ -32,6 +36,26 @@ server { |
|
|
|
include includes.d/staticfiles.conf; |
|
|
|
client_max_body_size 300M; |
|
|
|
location ~ ^/index.php { |
|
|
|
fastcgi_pass php81; |
|
|
|
include fastcgi_params; |
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
|
|
|
fastcgi_param SERVER_NAME $host; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
server { |
|
|
|
listen 80; |
|
|
|
server_name |
|
|
|
some-php74-site.local.wpstudio.ru |
|
|
|
; |
|
|
|
root $root; |
|
|
|
#include global/auth.conf; |
|
|
|
#@see https://vcs.wpstudio.ru/wpstudio/nginx-examples |
|
|
|
include includes.d/octobercms.conf; |
|
|
|
include includes.d/staticfiles.conf; |
|
|
|
client_max_body_size 300M; |
|
|
|
location ~ ^/index.php { |
|
|
|
fastcgi_pass php74; |
|
|
|
include fastcgi_params; |
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
|
|
|