linux:nginx
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
linux:nginx [2016/09/23 11:42] – [Installation] Fix missing dash memory | linux:nginx [2023/12/03 10:24] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 11: | 行 11: | ||
./configure --add-module=../ | ./configure --add-module=../ | ||
--add-module=../ | --add-module=../ | ||
- | --add-module=../ | + | --add-module=../ |
--with-pcre-jit \ | --with-pcre-jit \ | ||
--with-openssl=../ | --with-openssl=../ | ||
--with-http_v2_module \ | --with-http_v2_module \ | ||
--with-http_ssl_module \ | --with-http_ssl_module \ | ||
- | --with-ipv6 \ | ||
--with-http_gzip_static_module \ | --with-http_gzip_static_module \ | ||
--with-threads \ | --with-threads \ | ||
行 33: | 行 32: | ||
--http-uwsgi-temp-path=/ | --http-uwsgi-temp-path=/ | ||
</ | </ | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | ==== HTTPS ==== | ||
+ | |||
+ | - https:// | ||
+ | - https:// | ||
+ | |||
+ | An example ssl configuration: | ||
+ | |||
+ | <code nginx ssl.conf> | ||
+ | ssl_protocols | ||
+ | ssl_session_cache | ||
+ | ssl_session_timeout | ||
+ | # openssl dhparam -out dhparams.pem 2048 | ||
+ | ssl_dhparam | ||
+ | |||
+ | ssl_prefer_server_ciphers | ||
+ | ssl_ciphers | ||
+ | </ | ||
+ | |||
+ | ===== Snippets ===== | ||
+ | |||
+ | ==== Redirect naked domain to www ==== | ||
+ | |||
+ | Remember to replace '' | ||
+ | |||
+ | <code nginx redirect.conf> | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name [domain]; | ||
+ | |||
+ | rewrite ^(.*)$ $scheme:// | ||
+ | } | ||
+ | </ | ||
+ |
linux/nginx.1474602138.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)