x0f.org just added the 'Onion-Location" HTTP header per
https://mastodon.social/@ahf/104099278435384020
@admin The header is apparently also sent, and thus the '.onion available' widget shown, when you are on the .onion page/site.
Nothing big, just thought I'd mention it :)
@FreePietje @admin not sure if that's supposed to be the case, i'll look into it
@FreePietje @admin setting headers conditionally is not trivial with nginx, the obvious if(){} doesn't work; i think i got it to work though—by using a variable generated though a map statement on $host
@FreePietje @admin hmm in my experience nginx is simpler to configure (for the things i do) than what i remember from apache, it's just that it's inherently more minimalistic so less likely to support these kind of edge cases
@orionwl @admin
Seems to work :)
I find configuring nginx really complicated; I basically don't understand how it (is supposed to) works.
I'm seriously considering using Apache again, which then delegates (sub)tasks to nginx where I know nginx is a better solution for that task.