4 ms·
Aren't you supposed to use an index.html in the "/cyberspace/archive-the-web/" directory to get a URL like that? And if you wanted .html files to show up like t
by jimbobthrowawy 3y ago
Aren't you supposed to use an index.html in the "/cyberspace/archive-the-web/" directory to get a URL like that? And if you wanted .html files to show up like that, the nginx try-files directive could just check if the URL would work if it had a .html on the end and do an internal redirect. (like how the default config on debian adds a / to the end, if that would work)
From my experience using nginx for amateur reasons, this seems like the wrong way to go about this. Not to mention the distaste I have for caching redirects, like 301. (they make fixing your config annoying, since browsers will redirect (and switch the verb to GET) before even hitting the server)