nginx.conf 882 B

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