nginx.conf 948 B

1234567891011121314151617181920212223242526272829303132
  1. location YNH_WWW_PATH {
  2. # Path to source
  3. alias YNH_WWW_ALIAS ;
  4. # Example PHP configuration
  5. index index.php;
  6. # Common parameter to increase upload size limit in conjuction 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/php5-fpm.sock;
  12. # Filename to be changed if dedicated php-fpm process is required
  13. # This is to be used INSTEAD of line above
  14. # Don't forget to adjust scripts install/upgrade/remove/backup accordingly
  15. #
  16. #fastcgi_pass unix:/var/run/php5-fpm-YNH_WWW_APP.sock;
  17. fastcgi_index index.php;
  18. include fastcgi_params;
  19. fastcgi_param REMOTE_USER $remote_user;
  20. fastcgi_param PATH_INFO $fastcgi_path_info;
  21. fastcgi_param SCRIPT_FILENAME $request_filename;
  22. }
  23. # Include SSOWAT user panel.
  24. include conf.d/yunohost_panel.conf.inc;
  25. }