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

🐞 错误报告: nginx.md 排版及示例错误 #446

Closed
2 of 3 tasks
ohto-ai opened this issue Sep 28, 2023 · 3 comments
Closed
2 of 3 tasks

🐞 错误报告: nginx.md 排版及示例错误 #446

ohto-ai opened this issue Sep 28, 2023 · 3 comments
Assignees
Labels

Comments

@ohto-ai
Copy link
Contributor

ohto-ai commented Sep 28, 2023

📄 错误清单

docs/nginx.md

🧨 错误类型

  • 排版 & 文字错误
  • 清单内容示例错误
  • 其它

📖 错误说明

L274-L286 静态资源 示例错误

docs/nginx.md#L274-L286

server {
  listen 80;
  server_name example.com;
  root /path/to/website;
  # root /www/data/ 示例,如果里面没有'root',它将寻找 /www/data/index.html
  location / {
  }
  location /images/ { # 如果里面没有“root”,它将寻找 /www/data/images/index.html
  }
  location /videos/ { # 由于里面有“root”,它会寻找 /www/media/videos/index.html
      root /www/media;
  }
}

location /location /images/的注释与其实际效果不同,因为外层的root/path/to/website,此处的搜索路径应为/path/to/website//path/to/website/images/


L513 负载均衡示例 排版错误

docs/nginx.md#L513

server 127.0.0.1:85 weight=4;;
@jaywcjlove
Copy link
Owner

@ohto-ai 其实也没有错,因为注释前面有个 root /www/data/ 示例, 我改成一样了

L513 负载均衡示例 排版错误, 是什么意思?

@ohto-ai
Copy link
Contributor Author

ohto-ai commented Sep 28, 2023

@ohto-ai 其实也没有错,因为注释前面有个 root /www/data/ 示例, 我改成一样了

L513 负载均衡示例 排版错误, 是什么意思?

不好意思,L513忘记说明了,此处分号重复了

jaywcjlove added a commit that referenced this issue Sep 28, 2023
@jaywcjlove
Copy link
Owner

@ohto-ai 已修改,换衣提交 PR

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

No branches or pull requests

2 participants