Why is Nginx trying to access /dev/null? You can't point Nginx at a mounted SMB?

@matrix
[jasmine ~]# grep null /etc/nginx/sites/peertube.conf
try_files /dev/null @api;
try_files /dev/null @api;
try_files /dev/null @api;
try_files /dev/null @api;
try_files /dev/null @api_websocket;
try_files /dev/null @api_websocket;

It's some quirk regarding the upstream directive, like the only way to access it is via try_files, and this guarantees it will always pass up there.
I tried to prove it wrong a couple weeks back or something because someone else rightly complained about it. I did not succeed.
Follow

@Zerglingman Never would have thought /dev/null would be in the config

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.