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.

40 lines
991 B

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. map $http_host $root {
  8. octobercms.local.wpstudio.ru /usr/share/nginx/html/someproject;
  9. wordpress.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. resolver 8.8.8.8;
  17. map $http_host $uploads_upstream {
  18. wordpress.local.wpstudio.ru "https://somewp.site";
  19. }
  20. server {
  21. listen 80 default;
  22. root $root;
  23. #include global/auth.conf;
  24. #@see https://vcs.wpstudio.ru/wpstudio/nginx-examples
  25. include includes.d/octobercms.conf;
  26. include includes.d/staticfiles.conf;
  27. client_max_body_size 300M;
  28. location ~ ^/index.php {
  29. fastcgi_pass php74;
  30. include fastcgi_params;
  31. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  32. fastcgi_param SERVER_NAME $host;
  33. }
  34. }