diff --git a/conf/nginx.conf b/conf/nginx.conf index 4fcabbb..edfd863 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,10 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__ { - root /var/www/; + # Path to source + alias __FINALPATH__/; + + # ~ instruct nginx to perform a case-sensitive regular expression match location ~ [^/]\.php(/|$) { fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;