first 检查
- root@hetzner-fsn1-002:~# nginx -V
- nginx version: nginx/1.26.2
- built by gcc 13.2.0 (Ubuntu 13.2.0-23ubuntu4)
- built with OpenSSL 1.1.1w 11 Sep 2023
- TLS SNI support enabled
- configure arguments: –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module –with-http_v2_module –with-http_v3_module –with-http_gzip_static_module –with-http_sub_module –with-stream –with-stream_ssl_module –with-stream_ssl_preread_module –with-http_realip_module –with-openssl=/root/lnmp/src/openssl-1.1.1w –with-openssl-opt=enable-weak-ssl-ciphers –add-module=/root/lnmp/src/ngx-fancyindex-0.5.2
复制代码
然后 conf 设置
- server
- {
- #listen 443 ssl http2;
- #listen [::]:443 ssl http2;
- listen 443 ssl;
- listen 443 quic reuseport;
- listen [::]:443 ssl;
- listen [::]:443 quic reuseport;
- server_name yoursite.dev ;
- index index.html index.htm index.php default.html default.htm default.php;
- root /home/wwwroot/yoursite.dev;
复制代码
|