nginx.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. location __PATH__ {
  2. # Path to source
  3. alias __FINALPATH__/ ;
  4. if ($scheme = http) {
  5. rewrite ^ https://$server_name$request_uri? permanent;
  6. }
  7. # Example PHP configuration (remove if not used)
  8. index index.php;
  9. # Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
  10. #client_max_body_size 50M;
  11. try_files $uri $uri/ index.php;
  12. location ~ [^/]\.php(/|$) {
  13. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  14. fastcgi_pass unix:/var/run/php5-fpm-__NAME__.sock;
  15. # If you don't use a dedicated fpm config for your app,
  16. # use a general fpm pool.
  17. # This is to be used INSTEAD of line above
  18. # Don't forget to adjust scripts install/upgrade/remove/backup accordingly
  19. #
  20. #fastcgi_pass unix:/var/run/php5-fpm.sock;
  21. fastcgi_index index.php;
  22. include fastcgi_params;
  23. fastcgi_param REMOTE_USER $remote_user;
  24. fastcgi_param PATH_INFO $fastcgi_path_info;
  25. fastcgi_param SCRIPT_FILENAME $request_filename;
  26. }
  27. # PHP configuration end
  28. # Include SSOWAT user panel.
  29. include conf.d/yunohost_panel.conf.inc;
  30. }