运行NGINX SSL并且浏览器继续超时.
这是我的NGINX conf文件:
worker_processes 4;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
}
http {
proxy_next_upstream error;
charset utf-8;
include mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
keepalive_timeout 65;
keepalive_requests 0;
proxy_read_timeout 200;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
gzip on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/css text/xml
application/x-javascript application/xml
application/atom+xml text/javascript;
server{
### WEB Address ###
server_name mydomain.com;
### SSL log files ###
access_log /var/log/nginx/ssl-access.log;
error_log /var/log/nginx/ssl-error.log;
listen 443;
### SSL Certificates ###
ssl on;
ssl_certificate /etc/nginx/unified.crt;
ssl_certificate_key /etc/nginx/ssl.key;
keepalive_timeout 60;
### PROXY TO TORNADO ###
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://127.0.0.1:8889;
}
}
}
Run Code Online (Sandbox Code Playgroud)
SSL访问日志和错误日志为空.
我试过几次重启NGINX.作为旁注注释掉SSL并设置监听80适用于非SSL连接.
任何帮助都会很棒?
kle*_*len 56
也许443端口在您的服务器上关闭?请访问http://www.yougetsignal.com/tools/open-ports/进行检查
我同意克伦的回答,我会补充更多。
首先,去http://www.yougetsignal.com/tools/open-ports/检查端口443是否打开。
如果关闭,请转到您的AWS控制台,选择您的实例,然后转到描述->安全组-> launch_wizard-1
然后单击编辑->添加规则
从选项中选择HTTPS,您应该会看到此信息
| 归档时间: |
|
| 查看次数: |
11328 次 |
| 最近记录: |