так будет Явно работать :) set $root_path /var/www/qwe/data/www/qwe.com/public; #laravel location / { try_files $uri $uri/ /index.php?$query_string; #laravel location ~ [^/]\.ph(p\d*|tml)$ { try_files /does_not_exists @php; } } location @php { fastcgi_index index.php; fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@example.com"; fastcgi_pass unix:/var/www/php-fpm/qwe.sock; fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$; try_files $uri =404; include fastcgi_params; } root $root_path;
так будет Явно работать :)