OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-12-21 00:31:52 +00:00
parent b25cc0a659
commit cf5ee599b3
66 changed files with 569 additions and 53 deletions

View File

@@ -1,8 +1,8 @@
created: 20230207185112276
creator: Octt
modified: 20231220183101374
modified: 20231221001337203
modifier: Octt
tags:
tags: Server
title: Nginx
<<^wikipediaframe Nginx en >>
@@ -14,6 +14,7 @@ title: Nginx
* Nginx reverse proxy + URL rewrite: [[most correct way and best practice is usually...|https://serverfault.com/a/870620]]
* [[If is Evil… when used in location context|https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/]] --- (always dangerous in locations, except when doing `return ...;` or `rewrite ... last;`)
* [[How to reply with 200+content from Nginx, without serving a file?|https://serverfault.com/questions/196929/how-to-reply-with-200-from-nginx-without-serving-a-file]]
* [[Using variables in Nginx location rules|https://stackoverflow.com/questions/15416957/using-variables-in-nginx-location-rules/61513351#61513351]] --- nginx doesn't have proper variables, but the map module is often usable
* [[Install more_set_headers in nginx for Debian-based distro|https://serverfault.com/questions/954708/install-more-set-headers-in-nginx-1-15-8]] --- `apt install nginx-extras`, keeping in mind that it will rewrite the nginx core package, so any active nginx daemon will crash and need to be restarted.
** Apparently all extra modules get enabled by default after this installation, and some might crash on some systems: if so, delete their symlinks from `/etc/nginx/modules-enabled`.