nginx.conf 621 B

12345678910111213141516171819202122232425
  1. location YNH_EXAMPLE_PATH {
  2. # Path to source
  3. alias YNH_EXAMPLE_ALIAS ;
  4. # Force https
  5. if ($scheme = http) {
  6. rewrite ^ https://$server_name$request_uri? permanent;
  7. }
  8. # Example PHP configuration
  9. index index.php;
  10. try_files $uri $uri/ index.php;
  11. location ~ [^/]\.php(/|$) {
  12. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  13. fastcgi_pass unix:/var/run/php5-fpm.sock;
  14. fastcgi_index index.php;
  15. include fastcgi_params;
  16. fastcgi_param REMOTE_USER $remote_user;
  17. fastcgi_param PATH_INFO $fastcgi_path_info;
  18. }
  19. # Include SSOWAT user panel.
  20. include conf.d/yunohost_panel.conf.inc;
  21. }