I had such experience using Laravel app and for blog WordPress app. To make it possible I used nginx web server The idea is pretty simple:
var/www/laravel -> laravel app var/www/wp -> wp app
server { listen 80; index index.php index.html; root /var/www/laravel; location / { try_files $uri $uri/ /index.php?$query_string; } location /blog { alias /var/www/wp; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php7.4-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; } }
Thanks!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I had such experience using Laravel app and for blog WordPress app. To make it possible I used nginx web server
The idea is pretty simple:
Thanks!