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

5.4补充 (Nginx出现403的解决方案) #388

Closed
EricYoung37 opened this issue Jun 25, 2023 · 2 comments
Closed

5.4补充 (Nginx出现403的解决方案) #388

EricYoung37 opened this issue Jun 25, 2023 · 2 comments

Comments

@EricYoung37
Copy link

EricYoung37 commented Jun 25, 2023

如果按照教程走(没有写错路径),却在加载页面时出现403,则修改
/etc/nginx/nginx.conf中的user www-data;那一行为user <你在教程第3章创建的拥有sudo权限的用户名>;(不含括号)

简单来说这个配置文件这一行告诉Nginx以www-data身份运行Nginx并访问配置文件中的文件夹,这个身份很可能没有权限访问导致无法加载资源,因此要换成有权限的身份

花了2个小时在这上面....

参考来源

@shuiliu11
Copy link

确实如此. 我是一开始按照小小白文章建立服务器,过程中会建立www-data用户.如果直接照搬Xray-examples中的VLESS-TCP-XTLS-Vision/nginx.conf那么用户名不正确.
我觉得配置文件中应该注释一下.

@RPRX
Copy link
Member

RPRX commented Jul 8, 2023

可以直接 PR

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

No branches or pull requests

3 participants