icon
Update time
Jul 23, 2022 10:04 AM
Internal status
password
server { listen 80; listen 443; ssl on; ssl_certificate conf.d/jimersylee.com.crt; ssl_certificate_key conf.d/jimersylee.com.key.pem; ssl_session_timeout 5m; ssl_protocols SSLv2 SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; ssl_prefer_server_ciphers on; root /etc/nginx/conf.d; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name *.jimersylee.com; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } }
另外推荐,一个工具 https://www.digitalocean.com/community/tools/nginx 可视化配置nginx,方便新手了解nginx