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

宝塔搭建最后一步提示这个, #319

Open
3 tasks done
125540947 opened this issue Feb 29, 2024 · 5 comments
Open
3 tasks done

宝塔搭建最后一步提示这个, #319

125540947 opened this issue Feb 29, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@125540947
Copy link

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已确认我已升级到最新版本(最新代码)测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

campus框架版本

No response

本项目 campus-imaotai 版本

最新

运行环境

CentOS

运行架构

x86

问题描述

宝塔搭建最后一步提示这个,
nginx: 【emerg】 "location" directive is not allowed here in /www/server/panel/vhost/nginx/192.168.1.19.conf:62
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

期望的结果是什么?

帮解决一下

简单的复现代码/链接(可选)

No response

日志记录(可选)

No response

补充说明(可选)

No response

@125540947 125540947 added the bug Something isn't working label Feb 29, 2024
@125540947
Copy link
Author

screenshot-192 168 1 19_23506-2024 02 29-20_51_31

@HaoranXian
Copy link

nginx配置文件格式不对!

@125540947
Copy link
Author

nginx配置文件格式正确!

是根据文档里面写的,能帮看看怎么写正确吗

@alho0595
Copy link

同样问题,怎么解决呢

@KevinBrk
Copy link

location 的内容应该是要放在最外层大括号里面的吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants