gxq926
server {
listen 443;
server_name www.planman.top; #该域名为阿里云绑定服务器的域名
ssl on;
ssl_certificate /etc/nginx/conf.d/1_www.planman.top_bundle.crt;
ssl_certificate_key /etc/nginx/conf.d/2_www.planman.top.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;
client_max_body_size 1024m;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
proxy_pass http://127.0.0.1:5003;
expires 30d;
error_log /dev/null;
access_log off;
}
location ~ .*\.(js|css)?$
{
proxy_pass http://127.0.0.1:5003;
expires 12h;
error_log /dev/null;
access_log off;
}
location /blog/ {
proxy_pass http://127.0.0.1:5003/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Prodect_Type 2;
}
}
这是我nginx的配置,可以看看哪里有问题吗?