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.

64 lines
1.5 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. #upstream php73 {
  2. # server php73:9000;
  3. #}
  4. upstream php74 {
  5. server php74:9000;
  6. }
  7. upstream php81 {
  8. server php81:9000;
  9. }
  10. map $http_host $root {
  11. octobercms.local.wpstudio.ru /usr/share/nginx/html/someproject;
  12. wordpress.local.wpstudio.ru /usr/share/nginx/html/someprojectwp;
  13. }
  14. # @see https://github.com/OFFLINE-GmbH/oc-responsive-images-plugin/#responsive-images
  15. map $http_accept $webp_suffix {
  16. default "";
  17. "~*webp" ".webp";
  18. }
  19. resolver 127.0.0.11;
  20. map $http_host $uploads_upstream {
  21. wordpress.local.wpstudio.ru "https://somewp.site";
  22. }
  23. server {
  24. listen 80 default;
  25. root $root;
  26. #include global/auth.conf;
  27. #@see https://vcs.wpstudio.ru/wpstudio/nginx-examples
  28. include includes.d/octobercms.conf;
  29. include includes.d/staticfiles.conf;
  30. client_max_body_size 300M;
  31. location ~ ^/index.php {
  32. fastcgi_pass php81;
  33. include fastcgi_params;
  34. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  35. fastcgi_param SERVER_NAME $host;
  36. }
  37. }
  38. server {
  39. listen 80;
  40. server_name
  41. some-php74-site.local.wpstudio.ru
  42. ;
  43. root $root;
  44. #include global/auth.conf;
  45. #@see https://vcs.wpstudio.ru/wpstudio/nginx-examples
  46. include includes.d/octobercms.conf;
  47. include includes.d/staticfiles.conf;
  48. client_max_body_size 300M;
  49. location ~ ^/index.php {
  50. fastcgi_pass php74;
  51. include fastcgi_params;
  52. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  53. fastcgi_param SERVER_NAME $host;
  54. }
  55. }