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

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #upstream php73 {
  2. # server php73:9000;
  3. #}
  4. upstream php74 {
  5. server php74:9000;
  6. }
  7. map $http_host $root {
  8. octobercms.ru.local.wpstudio.ru /usr/share/nginx/html/someproject;
  9. wordpress.ru.local.wpstudio.ru /usr/share/nginx/html/someprojectwp;
  10. }
  11. # @see https://github.com/OFFLINE-GmbH/oc-responsive-images-plugin/#responsive-images
  12. map $http_accept $webp_suffix {
  13. default "";
  14. "~*webp" ".webp";
  15. }
  16. server {
  17. server_name
  18. octobercms.ru.local.wpstudio.ru
  19. ;
  20. listen 80 default;
  21. root $root;
  22. #include global/auth.conf;
  23. #@see https://vcs.wpstudio.ru/wpstudio/nginx-examples
  24. include includes.d/octobercms.conf;
  25. include includes.d/staticfiles.conf;
  26. client_max_body_size 300M;
  27. location ~ ^/index.php {
  28. fastcgi_pass php74;
  29. include fastcgi_params;
  30. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  31. fastcgi_param SERVER_NAME $host;
  32. }
  33. }