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.

43 lines
1.0 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
  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. resolver 8.8.8.8;
  17. map $http_host $uploads_upstream {
  18. wordpress.ru.local.wpstudio.ru "https://somewp.site";
  19. }
  20. server {
  21. server_name
  22. octobercms.ru.local.wpstudio.ru
  23. ;
  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 php74;
  33. include fastcgi_params;
  34. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  35. fastcgi_param SERVER_NAME $host;
  36. }
  37. }