diff --git a/conf/nginx.conf b/conf/nginx.conf index 91f2c50..fef01e2 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,19 +1,17 @@ location / { # Path to source - alias __FINALPATH__/public/ ; + alias __FINALPATH__/public/; # Force usage of https if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - index index.php index.html ; + index index.php; - # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - #client_max_body_size 50M; + rewrite ^/.*$ /index.php last; - try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;