linux 安装ssl 失败原因
配置文件成功的情况下打不开:开放端口 设置端口
server {
listen 443 default ssl; //需要加不然会显示404 default ssl
server_name 36xueshe.com www.36xueshe.com;
ssl_certificate zhengshu/certificate.crt;
ssl_certificate_key zhengshu/36xueshecom.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!3DES:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
try_files $uri $uri/ /index.php?$query_string;
root /www/laravel/public;
index index.html index.htm index.php;
}
location ~ \.php$ {
root /www/laravel/public;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
} 相关推荐
Junzizhiai 2020-10-10
夜雨倚琴 2020-09-06
windzoone 2020-08-06
这些年来 2020-07-19
CSDNMrWang 2020-07-06
Neptune 2020-07-05
LzHeng 2020-07-04
CSDNMrWang 2020-06-22
zkwgpp 2020-06-15
某些公司会墙特定网站,如果你有一个可访问的域名和服务器,就可以通过nginx反向代理来来解决这些问题。比如现在我们用mirror.example.com镜像www.baidu.com,以下是详细操作。
byourb 2020-06-05
LzHeng 2020-06-05
duckes 2020-05-17
gongruitao 2020-05-16
LczPtr 2020-05-09
onlykg 2020-05-12
yongzhang 2020-05-10