You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
947 B
37 lines
947 B
#upstream php73 {
|
|
# server php73:9000;
|
|
#}
|
|
|
|
upstream php74 {
|
|
server php74:9000;
|
|
}
|
|
|
|
map $http_host $root {
|
|
octobercms.ru.local.wpstudio.ru /usr/share/nginx/html/someproject;
|
|
wordpress.ru.local.wpstudio.ru /usr/share/nginx/html/someprojectwp;
|
|
}
|
|
|
|
# @see https://github.com/OFFLINE-GmbH/oc-responsive-images-plugin/#responsive-images
|
|
map $http_accept $webp_suffix {
|
|
default "";
|
|
"~*webp" ".webp";
|
|
}
|
|
|
|
server {
|
|
server_name
|
|
octobercms.ru.local.wpstudio.ru
|
|
;
|
|
listen 80 default;
|
|
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;
|
|
fastcgi_param SERVER_NAME $host;
|
|
}
|
|
}
|