Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阿里云轻量服务器 公网部署 域名访问不了 #100

Closed
geekhuashan opened this issue Mar 10, 2023 · 4 comments
Closed

阿里云轻量服务器 公网部署 域名访问不了 #100

geekhuashan opened this issue Mar 10, 2023 · 4 comments
Labels
question Further information is requested

Comments

@geekhuashan
Copy link

geekhuashan commented Mar 10, 2023

错误描述

阿里云轻量服务器上部署的,装了shell-clash,运行一切正常,通过IP:7860访问没有任何问题。

但是,我利用Readme这里的Nginx 反向代理,发现没有起到作用。

错误截图

修改了Nginx.conf
tmp359C

在/etc/nginx/conf.d 新建mysite.conf

tmp707F

nginx -t 通过了
IP地址访问也可以显示Nginx
tmp5BF8

Cloudflare 设置
tmp6409

我同样的设置,把Cloudflare的DNS的IP地址 改成Digital Ocean的服务器就能正常访问,搞不明白啊,是阿里云的问题嘛

运行环境

请填写以下列表:

  • OS: bebian 11.3
@geekhuashan geekhuashan added the question Further information is requested label Mar 10, 2023
@geekhuashan
Copy link
Author

是不是国内服务器 域名不备案就不能解析嘛

@GaiZhenbiao
Copy link
Owner

修改完Nginx的配置文件,需要重启下Nginx。

@GaiZhenbiao
Copy link
Owner

国内服务器肯定是需要备案的,不过你可以通过端口访问,应该就不是这方面的问题。
另外nginx.conf里的缩进可能比较重要,建议改进一下缩进。成这样:
image

@geekhuashan
Copy link
Author

国内服务器肯定是需要备案的,不过你可以通过端口访问,应该就不是这方面的问题。 另外nginx.conf里的缩进可能比较重要,建议改进一下缩进。成这样: image

谢谢大佬,修改了之后,网页显示需要备案,确认了,太麻烦了,算了算了,不搞了,搞个国外的VPS了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants