nginx.conf 1.1 KB

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