Login

nodejs server access txt file

Author:neo yang Time:2022/04/15 Read: 4865

The nodejs server accesses the txt file in the root directory.

Inaccessible.

I always thought it was caused by the reverse proxy of the nodejs server.

Today I found out that it is not.

It's caused by the configuration of the nginx server.

made some changes

location ~ .*.(js|css|txt)?$ # Just add |txt here.
{
expires 12h;
error_log off;
access_log /dev/null;
}
tags:


copyright © www.lyustu.com all rights reserved.
Theme: TheMoon V3.0. Author:neo yang