linux:nginx
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:nginx [2021/11/03 18:05] – [Installation] gsys | linux:nginx [2025/06/05 18:37] (current) – gsys | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| ===== Installation ===== | ===== Installation ===== | ||
| - | ** Optional: Offizielles | + | ** Optional: Offizielles |
| Datei ''/ | Datei ''/ | ||
| Line 16: | Line 16: | ||
| </ | </ | ||
| - | ** Installation ** | + | ** Installation |
| < | < | ||
| sudo apt update | sudo apt update | ||
| Line 30: | Line 30: | ||
| / | / | ||
| / | / | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Hide version ==== | ||
| + | |||
| + | < | ||
| + | server_tokens off; | ||
| + | </ | ||
| + | |||
| + | ''/ | ||
| + | < | ||
| + | http { | ||
| + | include | ||
| + | default_type | ||
| + | |||
| + | log_format | ||
| + | ' | ||
| + | '" | ||
| + | |||
| + | access_log | ||
| + | |||
| + | server_tokens off; | ||
| + | |||
| + | sendfile | ||
| + | # | ||
| + | |||
| + | keepalive_timeout | ||
| + | |||
| + | #gzip on; | ||
| + | |||
| + | include / | ||
| + | } | ||
| </ | </ | ||
| ==== Reverse Proxy ==== | ==== Reverse Proxy ==== | ||
| + | === LDAPS === | ||
| + | < | ||
| + | stream { | ||
| + | server { | ||
| + | listen 636 ssl; | ||
| + | |||
| + | ssl_certificate / | ||
| + | ssl_certificate_key / | ||
| + | |||
| + | proxy_pass 192.168.1.123: | ||
| + | proxy_ssl on; | ||
| + | proxy_ssl_verify off; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| - | FIXME | + | === Exchange OWA/EAS === |
| - | ==== Exchange OWA/ | + | |
| default.conf (docker) | default.conf (docker) | ||
| Line 171: | Line 217: | ||
| </ | </ | ||
| + | |||
| + | === Nextcloud === | ||
| + | |||
| + | < | ||
| + | upstream cloud.example.com-upstream { | ||
| + | server 192.168.1.234: | ||
| + | } | ||
| + | server { | ||
| + | server_name cloud.example.com; | ||
| + | listen 80 ; | ||
| + | listen [::]:80 ; | ||
| + | access_log / | ||
| + | location / { | ||
| + | return 301 https:// | ||
| + | } | ||
| + | } | ||
| + | server { | ||
| + | server_name cloud.example.com; | ||
| + | listen 443 ssl http2 ; | ||
| + | listen [::]:443 ssl http2 ; | ||
| + | access_log / | ||
| + | ssl_session_timeout 5m; | ||
| + | ssl_session_cache shared: | ||
| + | ssl_session_tickets off; | ||
| + | ssl_certificate / | ||
| + | ssl_certificate_key / | ||
| + | ssl_dhparam / | ||
| + | ssl_stapling on; | ||
| + | ssl_stapling_verify on; | ||
| + | ssl_trusted_certificate / | ||
| + | add_header Strict-Transport-Security " | ||
| + | proxy_buffering off; | ||
| + | client_max_body_size 64m; | ||
| + | location / { | ||
| + | proxy_pass http:// | ||
| + | } | ||
| + | location = / | ||
| + | return 301 $scheme:// | ||
| + | } | ||
| + | location = / | ||
| + | return 301 $scheme:// | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== index.html ===== | ||
| + | https:// | ||
linux/nginx.1635959125.txt.gz · Last modified: (external edit)