The issue
THis is my main domain https://mywebsite.com that is running a NUXT website
I wanna then install flarum and make it avaialbe from here: https://mywebsite.com/forum
Both site are running on NGINX server
Now i installed flarum in a subdomain because i manage my server using CLOUD PANEL
And from my subdomain flarum is working fine https://forum.mywebsite.com
The issue come when i try to config the forum to be opened in the subfolder
To do this i did:
1) edited my config.php file of flarum ans et as url from this: https://forum.mywebsiute.com to https://mywebsite.com/forum
2) added a reverse proxy entry into my nginx confgi file of the main site:
location /forum {
proxy_pass http://127.0.0.1:8080; # URL dell'altro sito
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
Then if i visit https://mywebsite.com/forum i get a 404 error screen from laraval framework.
So it open fine but show me 404 screen managed by laravel.
NGINX CONFIG
Main site:
Forum site: