nginx.conf 618 B

1234567891011121314151617181920212223
  1. #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
  2. location __PATH__/ {
  3. # Path to source
  4. alias __FINALPATH__/;
  5. index index.html index.php;
  6. try_files $uri $uri/ index.php;
  7. location ~ [^/]\.php(/|$) {
  8. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  9. fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
  10. fastcgi_index index.php;
  11. include fastcgi_params;
  12. fastcgi_param REMOTE_USER $remote_user;
  13. fastcgi_param PATH_INFO $fastcgi_path_info;
  14. fastcgi_param SCRIPT_FILENAME $request_filename;
  15. }
  16. # Include SSOWAT user panel.
  17. include conf.d/yunohost_panel.conf.inc;
  18. }