Hi guys,
for example i have the ip test.com and i want when people open test.com they can see an html5 that i made and access to the forum with test.com/foro
I already set flarum to test.com/foro and in my nginx i have this
server {
listen 127.0.0.1(example):80;
server_name test.com(Example);
root /var/www/flarum/foro;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
test.com/foro it works but when i change the root to just /var/www/flarum/ i can access now both, to my html5 file and to the forum with test.com/foro but when i try to post or login or do something i got this error The requested resource was not found, but when i put again in the nginx root /var/www/flarum/foro it works again.
Its there a way like access by default to my html5 with test.com and access to the forum with test.com/forum?