VPS侦探论坛
标题:
lnmp绑定域名不能解析chrome 提示ERR_CONNECTION_REFUSED
[打印本页]
作者:
thisispluto
时间:
2016-3-12 22:39
标题:
lnmp绑定域名不能解析chrome 提示ERR_CONNECTION_REFUSED
用的是阿里云域名 A记录是 @ 然后域名是nimbuscraft.net
服务器是vultr的
不过用cloudflare的cdn可以登录网站
下面是伪静态文件:
server
{
listen 80;
listen 443 ssl;
server_name nimbuscraft.net;
#listen [::]:80;
ssl on; #开启https方式访问
ssl_certificate /root/ssl.crt; #ssl证书位置
ssl_certificate_key /root/ssl.key; #ssl密钥
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!DH:!EXPORT:!RC4:+HIGH:+MEDIUM:!LOW:!aNULL:!eNULL;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/nimbuscraft.net;
include typecho.conf;
#error_page 404 /404.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
# try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log /home/wwwlogs/nimbuscraft.net.log access;
}
作者:
海豚V靓仔
时间:
2016-3-12 23:15
标题:
回复 1# 的帖子
你这什么伪静态哦,大众的不用,非走这种时尚,不出问题才怪
作者:
licess
时间:
2016-3-13 09:07
443端口没开吧,检查一下iptables
作者:
thisispluto
时间:
2016-3-13 09:30
标题:
回复 3# 的帖子
开了以后好像可以了,不过cloudflare为什么可以?是他镜像了我网站的关系吗
作者:
licess
时间:
2016-3-13 15:35
标题:
回复 4# 的帖子
具体不清楚,可能走的80
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4