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

在宝塔里部署,打开提示Invalid Host header #238

Open
enweny opened this issue May 28, 2023 · 0 comments
Open

在宝塔里部署,打开提示Invalid Host header #238

enweny opened this issue May 28, 2023 · 0 comments

Comments

@enweny
Copy link

enweny commented May 28, 2023

我在宝塔里部署,最后打开域名提示Invalid Host header

1、我先在宝塔里/www/wwwroot/下新建了一个文件夹,然后git clone --depth=1 https://github.com/xjh22222228/nav.git

2、然后新建了Node项目,填写项目目录:/www/wwwroot/{我的文件夹}/nav/ --> 启动选项填写yarn start --> 项目端口填写7001
同时我还更改了nav.config.tx里的仓库地址,宝塔里看到项目是提示启动了,最后我看到项目日志里提示了:

yarn run v1.22.19
$ ng serve --port=7001

Initial Chunk Files | Names | Size
vendor.js | vendor | 9.15 MB
styles.css | styles | 1.35 MB
main.js | main | 679.06 kB
polyfills.js | polyfills | 239.18 kB
runtime.js | runtime | 6.15 kB

| Initial Total | 11.40 MB

Build at: 2023-05-28T05:39:23.562Z - Hash: 3356ddd11172d01bbbc1 - Time: 30306ms

** Angular Live Development Server is listening on localhost:7001, open your browser on http://localhost:7001/ **


✔ Compiled successfully.

但最后打开网页提示 Invalid Host header

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

1 participant