I have such a project structure
<root>/public/laravel_app/index.php — Laravel index file
<root>/public/index.php — CraftCMS index file
I want to load CraftCMS app at
https://<domain>
and Laravel app at https://<domain>/laravel_app
Here is my vhost.conf
server {
listen 443 ssl;
index index.php index.html;
root /var/www/public;
ssl_certificate /var/www/docker/certs/nginx.crt;
ssl_certificate_key /var/www/docker/certs/nginx.key;
location / {
try_files $uri /index.php?$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass app:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
I've looked through almost all related SO questions and have tried a lot of stuff, so, if it's possible, please, send suggestions related to my config.
I'm not a sysadmin and I am an Apache user (there it works in such a way without any tweaking), so I apologize, if I'm missing something obvious.