debian 安装nginx
命令:
apt install nginx
修改端口在/etc/nginx/sites-enabled 目下建配置文件aa.conf
server
{
listen 80;
listen 8443 ssl http2;
server_name hknf1.ynode.xyz;
index index.php index.html index.htm default.php default.htm default.html;
root /var/www/html;
ssl_certificate /etc/XrayR/cert/certificates/hknf1.ynode.xyz.crt;
ssl_certificate_key /etc/XrayR/cert/certificates/hknf1.ynode.xyz.key ;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
add_header Strict-Transport-Security "max-age=31536000";
error_page 497 https://$host$request_uri;
access_log off;
error_log off;
}