3 ms·
Could you give a pointer to more info on that? I couldn't find more details on such a setup while googling it.
by semi-extrinsic 4y ago
Could you give a pointer to more info on that? I couldn't find more details on such a setup while googling it.
- cesarb 4y agoWhen configuring apache or nginx, one of the virtual hosts you configure is the "default" virtual host, used when the Host header didn't match any of the virtual hosts. IIRC, on nginx, you explicitly say on the virtual host "this is the default", while on apache, it's either the first or the last (forgot which one). How to configure that virtual host is up to you; the simplest configuration would be to point its document root to an empty directory, and add a couple of access control directives to deny access to it from all IP addresses.
- derefr 4y agoI think this is the (only) place in the Nginx docs that mentions 444: https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#return https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#...