2022-03-04 00:48:14 +03:00
|
|
|
#upstream php73 {
|
|
|
|
# server php73:9000;
|
|
|
|
#}
|
2020-02-20 22:56:41 +03:00
|
|
|
|
2021-04-19 14:01:33 +03:00
|
|
|
upstream php74 {
|
|
|
|
server php74:9000;
|
2020-02-20 22:56:41 +03:00
|
|
|
}
|
|
|
|
|
2023-09-28 08:15:45 +03:00
|
|
|
upstream php81 {
|
|
|
|
server php81:9000;
|
|
|
|
}
|
|
|
|
|
2020-02-20 22:56:41 +03:00
|
|
|
map $http_host $root {
|
2023-01-17 11:55:27 +03:00
|
|
|
octobercms.local.wpstudio.ru /usr/share/nginx/html/someproject;
|
|
|
|
wordpress.local.wpstudio.ru /usr/share/nginx/html/someprojectwp;
|
2020-02-20 22:56:41 +03:00
|
|
|
}
|
|
|
|
|
2021-11-17 00:15:51 +03:00
|
|
|
# @see https://github.com/OFFLINE-GmbH/oc-responsive-images-plugin/#responsive-images
|
|
|
|
map $http_accept $webp_suffix {
|
|
|
|
default "";
|
|
|
|
"~*webp" ".webp";
|
|
|
|
}
|
|
|
|
|
2022-12-13 14:40:00 +03:00
|
|
|
resolver 8.8.8.8;
|
|
|
|
|
|
|
|
map $http_host $uploads_upstream {
|
2023-01-17 11:55:27 +03:00
|
|
|
wordpress.local.wpstudio.ru "https://somewp.site";
|
2022-12-13 14:40:00 +03:00
|
|
|
}
|
|
|
|
|
2020-02-20 22:56:41 +03:00
|
|
|
server {
|
2022-05-07 21:49:47 +03:00
|
|
|
listen 80 default;
|
2020-02-20 22:56:41 +03:00
|
|
|
root $root;
|
|
|
|
#include global/auth.conf;
|
|
|
|
#@see https://vcs.wpstudio.ru/wpstudio/nginx-examples
|
|
|
|
include includes.d/octobercms.conf;
|
|
|
|
include includes.d/staticfiles.conf;
|
2022-08-10 13:29:27 +03:00
|
|
|
client_max_body_size 300M;
|
2020-02-20 22:56:41 +03:00
|
|
|
location ~ ^/index.php {
|
2023-09-28 08:15:45 +03:00
|
|
|
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 {
|
2021-04-19 14:01:33 +03:00
|
|
|
fastcgi_pass php74;
|
2020-02-20 22:56:41 +03:00
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
2021-09-10 17:42:19 +03:00
|
|
|
fastcgi_param SERVER_NAME $host;
|
2020-02-20 22:56:41 +03:00
|
|
|
}
|
|
|
|
}
|