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.

65 lines
1.6 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. large_client_header_buffers 4 32k;
  32. location ~ ^/index.php {
  33. fastcgi_pass php81;
  34. include fastcgi_params;
  35. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  36. fastcgi_param SERVER_NAME $host;
  37. }
  38. }
  39. server {
  40. listen 80;
  41. server_name
  42. some-php74-site.local.wpstudio.ru
  43. ;
  44. root $root;
  45. #include global/auth.conf;
  46. #@see https://vcs.wpstudio.ru/wpstudio/nginx-examples
  47. include includes.d/octobercms.conf;
  48. include includes.d/staticfiles.conf;
  49. client_max_body_size 300M;
  50. location ~ ^/index.php {
  51. fastcgi_pass php74;
  52. include fastcgi_params;
  53. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  54. fastcgi_param SERVER_NAME $host;
  55. }
  56. }