贴一贴博客,欢迎加友链呀
jamesmwh 443默认的,你安全组开放下443端口就行了
chenxianghuan 不太会配置nginx.conf,443已经开放了,但是还是不能访问
jamesmwh 这是我的nginx配置,不过记得开放相关端口号
server {
listen 80;
server_name yangcloud.online,www.yangcloud.online;
rewrite ^(.*)$ https://www.yangcloud.online$1 permanent;
}
server {
listen 443;
server_name localhost;
ssl on;
ssl_certificate 3545901_yangcloud.online.pem;
ssl_certificate_key 3545901_yangcloud.online.key;
client_max_body_size 1024m;
location / {
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_pass http://localhost:8090;
}
}
有互加友链的请 @我一下,不一定每天关注
ZhuBoyang http://blog.jamesmwh.cn
这个网址可以打开么?
链接:https://www.jacob.org.cn/
头像:https://www.jacob.org.cn/avatar
描述:EVERY DAY TO BE A LITTLE BETTER
17 天 后
名称:Vivi's Blog
链接:https://vivi.run
头像:https://vivi.run/avatar
描述:书山有路勤为径