4

我试图让 moov 在​​端口 8080 上运行,但出现错误:

$ curl -s -i http://mlocal.nytimes.com:8080/
HTTP/1.0 534 Internal Server Error
Connection: close
Content-Type: text/plain;
Content-Length: 69

Host header 'mlocal.nytimes.com:8080' did not match project rewriters

我正在启动服务器:

$ sudo moov server -p=8080 --auto-hosts

(它似乎在端口 80 上工作正常。)

4

1 回答 1

4

当您手动指定要运行的端口时,您需要采取额外的步骤。

进入项目文件并打开 config.json

将 :8080 附加到指定的域名,如下所示:

"$.nytimes.com:8080 => www.nytimes.com",

ETC..

于 2013-06-05T19:31:13.083 回答