nginx.conf 648 B

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