5,377 karma · joined Oct 20, 2023 (3y ago) · 2,450 submissions
comment 7mo ago · link · parent
If someone is a a EU citizen and wanted to work in aerospace in the US, would that be possible in general?
What kind of visa or green card would they need?
Would they be able to work on everything like a US citizen or are there areas that are restricted?
comment 7mo ago · link · parent
comment 7mo ago · link · parent
https://nginx.org/en/docs/http/ngx_http_core_module.html#mer...
Thanks for trying!
comment 7mo ago · link · parent
No. The RFC says that the rewritten URL is not considered the same URL. But nothing says that the reverse proxy has to request the same URL.
The rewrite is not a normalization, but nothing says that the reverse proxy is only allowed to do normalization.
> Clearly, it's not wrong if you selected and/or configured a software package specifically for the purpose of providing that functionality. And clearly it is wrong if it were to do that when not configured to do anything other than act as generic middleware, with that software's creator(s) operating under the assumption that it's safe to do so all while arguing that it's standards-compliant.
It’s not wrong and it is standards-compliant, because no standard says that the default has to be „pass the original URL on without rewriting it“.
comment 7mo ago · link · parent
This assumes that „the reverse proxy requests a different URL upstream from what it got as a request“ is wrong. Who says that it is?
And as I said, it doesn’t seem to be the default. But I can also continue defend it being the default because I think even as a default on it wouldn’t be wrong.
EDIT: Actually it seems to be on by default:
https://nginx.org/en/docs/http/ngx_http_core_module.html#mer...
> Yes it is. Prescriptions for how intermediate servers are or are not to munge data before passing it to the origin server is written directly into the HTTP RFCs. It's filled with references to them.
Which RFC forbids a reverse proxy from rewriting the request URL?
If I have a legacy PHP app that expects values as query strings and I use a reverse proxy to map the URL path to those query strings, is that wrong too? Would it be wrong if my reverse proxy did that by default?
comment 7mo ago · link · parent
And at least according to this, the default setting is off so nginx actually is compliant unless you manually make it not be:
https://www.oreilly.com/library/view/nginx-http-server/97817...
EDIT: Actually it seems to be on by default:
https://nginx.org/en/docs/http/ngx_http_core_module.html#mer...
comment 7mo ago · link · parent
> nginx with merge_slashes
How can it be wrong if it is server-side? If the server wants to treat those paths equally, it can if it wants to.
It would only be wrong if a client does it and requests a different URL than the user entered, right?
comment 7mo ago · link · parent
Ah yes, the lock screen experience. I could stare at it forever.
On a more serious note, does anyone know why they would do it like that? Why is one polling interval aligned and the other isn’t? What’s the security impact?
comment 8mo ago · link · parent