nginx.conf 995 B

123456789101112131415161718192021222324252627282930313233343536
  1. #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
  2. location __PATH__/ {
  3. # Path to source
  4. alias __FINALPATH__/ ;
  5. # Force usage of https
  6. if ($scheme = http) {
  7. rewrite ^ https://$server_name$request_uri? permanent;
  8. }
  9. index index.php;
  10. # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
  11. #client_max_body_size 50M;
  12. try_files $uri $uri/ index.php;
  13. location ~ [^/]\.php(/|$) {
  14. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  15. fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
  16. #fastcgi_index index.php;
  17. include fastcgi_params;
  18. include /etc/nginx/fastcgi_params;
  19. fastcgi_intercept_errors on;
  20. fastcgi_param REMOTE_USER $remote_user;
  21. fastcgi_param PATH_INFO $fastcgi_path_info;
  22. fastcgi_param SCRIPT_FILENAME $request_filename;
  23. #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  24. }
  25. # Include SSOWAT user panel.
  26. include conf.d/yunohost_panel.conf.inc;
  27. }