Better HN
topnewbestaskshowjobs
Log inSign up

ErikMarf

6 karma · joined Jul 1, 2021 (5y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

I usually create a "file filter" instead. Keep the extension as is (hi.html) and then use the try_files directive in nginx to make the server look for files with the same path using .html as an example. It has been a while since I used nginx but it looks something like this:

try_files $uri.html

comment 4y ago · link · parent

I usually create a "file filter" instead. Keep the extension as is (hi.html) and then use the try_files directive in nginx to make the server look for files with the same path using .html as an example. It has been a while since I used nginx but it looks something like this:

try_files $uri.html