mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-02-13 09:50:37 +01:00
23 lines
1.8 KiB
Plaintext
23 lines
1.8 KiB
Plaintext
created: 20230207185112276
|
|
creator: Octt
|
|
modified: 20231221190746217
|
|
modifier: Octt
|
|
tags: Server
|
|
title: Nginx
|
|
|
|
<<^wikipediaframe Nginx en >>
|
|
|
|
!!! ''Resources''
|
|
|
|
* [[agentzh's Nginx Tutorials (version 2020.03.19)|https://openresty.org/download/agentzh-nginx-tutorials-en.html]]
|
|
* [[How to set up Nginx as a caching reverse proxy?|https://serverfault.com/questions/30705/how-to-set-up-nginx-as-a-caching-reverse-proxy]]
|
|
* Nginx reverse proxy + URL rewrite: [[most correct way and best practice is usually...|https://serverfault.com/a/870620]]
|
|
* [[How nginx "location if" works|https://agentzh.blogspot.com/2011/03/how-nginx-location-if-works.html]]
|
|
** [[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]]
|
|
* [[nginx redirect based on domain name|https://serverfault.com/questions/832456/nginx-redirect-based-on-domain-name/832474#832474]]
|
|
* [[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`.
|