I have 2 nginx location blocks set up like following:
root /var/www/html/;
location / {
proxy_pass http://localhost:8000/;
}
location /something/ {
alias /var/www/html/;
try files $uri $uri/ /index.html;
}
The first block routes request to a next server and /something/
routes to a react spa.
Right now, on requesting http://example.com/something/
is still returning a 404 page which is configured in the next application.
I can't seem to figure out where I'm going wrong.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…