首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >配置SSL如下,https可用了,但是为什么http却不能用?

配置SSL如下,https可用了,但是为什么http却不能用?

提问于 2017-09-04 10:47:38
回答 2关注 0查看 1.2K

#不方便给大家看的东西用*号打码了,谢谢大家了。

server {

listen 443 ssl;

listen 80;

server_name **********;

ssl_certificate ****************.crt;

ssl_certificate_key *************.key;

#ssl_session_timeout 5m;

#ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置

#ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置

#ssl_prefer_server_ciphers on;

root ****************;

index /index.php;

client_max_body_size 52m;

location ~ .*\.(ico|swf|jpg|jpeg|png|gif|js|css)$ {

root *****************;

access_log off;

error_log off;

}

#location / {

# if (!-e $request_filename){

# rewrite ^/(.*)$ /index.php/$1 last;

# break;

# }

# }

location ~ /index.php {

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME $document_root/index.php;

include fastcgi_params;

fastcgi_param APPLICATION_ENV rds;

}

}

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档