nginx.conf 748 B

12345678910111213141516171819202122232425
  1. #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
  2. location __PATH__/ {
  3. # Path to source
  4. alias __INSTALL_DIR__/;
  5. ### Example PHP configuration (remove it if not used)
  6. index index.php;
  7. # Common parameter to increase upload size limit in conjunction with dedicated PHP-FPM file
  8. # client_max_body_size 50M;
  9. try_files $uri $uri/ index.php;
  10. location ~ [^/]\.php(/|$) {
  11. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  12. fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock;
  13. fastcgi_index index.php;
  14. include fastcgi_params;
  15. fastcgi_param REMOTE_USER $remote_user;
  16. fastcgi_param PATH_INFO $fastcgi_path_info;
  17. fastcgi_param SCRIPT_FILENAME $request_filename;
  18. }
  19. ### End of PHP configuration part
  20. }