Nginx80和433的http和https共存

[nginx] 2024-04-25 圈点919

摘要:Nginx80和433的http和https共存

Nginx80和433的http和https共存


实例


server

{

listen 80;

listen 443 ssl;

server_name www.xoxxoo.com;

index index.html index.htm index.php;

root /webhome/;

ssl on

ssl_certificate /usr/local/nginx/conf/www_iamle_com.crt;

ssl_certificate_key /usr/local/nginx/conf/www_iamle_com.key;

#其它配置省略

}

  

相关内容:

感谢反馈,已提交成功,审核后即会显示