Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENTS] New Default Routing Option: No Response (similar to Nginx 444) #430

Open
DerLeole opened this issue Dec 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@DerLeole
Copy link

Is your feature request related to a problem? Please describe.
Currently there is no easy way to have zoraxy not respond at all as the default routing option.
One example is that if a subdomain is not present but routed to zoraxy anyways due to a wildcard DNS entry, zoraxy will respond with either a 404 page, a redirect, a forward to an internal target, or the static webserver. However I'd like it to simply not respond at all in cases like this, similar to NPMs "No Response (444)" option.

Describe the solution you'd like
Implement a new Default Routing option in which zoraxy simply does not send any response at all and closes the connection.
Inspiration in the implementation can be taken from NPM/Nginx and its 444 response option.

Describe alternatives you've considered
The only other way I see that could work right now is to set the default route to a proxy target that does something similar, but I'm not sure if that properly closes the connection or truly sends no data back by default or if it would cause zoraxy to register it as a broken route and display an respond with an error instead.

Additional context
The HTTP response code 444 is not an official response code and is only used in NGINX and its paradoxical in itself, as its used whenever there is no response returned, not even the response code itself. So that NGINX terminology can be entirely ignored, I just added it here to make the related functionality easier to find in other projects.

@DerLeole DerLeole added the enhancement New feature or request label Dec 17, 2024
@DerLeole DerLeole changed the title [ENHANCEMENTS] New Default Routing Option: No Response (similar to NGINX 444) [ENHANCEMENTS] New Default Routing Option: No Response (similar to Nginx 444) Dec 17, 2024
tobychui added a commit that referenced this issue Dec 17, 2024
+ Added no response and I'm a Teapot (config file editing only) to default site options
@tobychui
Copy link
Owner

tobychui commented Dec 17, 2024

Added
圖片

Though, this only works on HTTP as in HTTPS, the SNI feature need to handle the request first before serving the TLS certificate. So at most what it can reply is an empty 200 resp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants