location __PATH__/ { alias __INSTALL_DIR__/public/; index index.php; try_files $uri $uri/ __PATH__/index.php?$query_string; location ~ /\. { deny all; } location = __PATH__/index.php { include fastcgi_params; fastcgi_param SCRIPT_FILENAME __INSTALL_DIR__/public/index.php; fastcgi_param HTTP_PROXY ""; fastcgi_pass unix:/var/run/php/php8.2-fpm-__APP__.sock; } }