nginx.conf 509 B

1234567891011121314151617181920
  1. location YNH_WWW_PATH {
  2. # Path to source
  3. alias YNH_WWW_ALIAS ;
  4. # Example PHP configuration
  5. index index.php;
  6. try_files $uri $uri/ index.php;
  7. location ~ [^/]\.php(/|$) {
  8. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  9. fastcgi_pass unix:/var/run/php5-fpm.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. }
  15. # Include SSOWAT user panel.
  16. include conf.d/yunohost_panel.conf.inc;
  17. }