Hello everybody.
I have a React application using the React Router package. As such, routing is done in the browser, which leads to 404 errors when reloading all pages other than the root page.
At How to fix 404 errors when using React Router with Nginx I found the following block of code, which should solve the problem when added to the NGINX configuration of my website:
server {
listen 80;
listen [::]:80;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}
How should I implement this in the Hestia Control Panel?
Thank you.