How to use non-standard ports?

I try to run moov on port 8080 but I get an error:

$ 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 

I start the server with:

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

(It seems to work fine on port 80.)

+4
source share
1 answer

You will need one more step when you manually specify the port to start.

Go to the project files and open the config.json file

Add: 8080 to the domain names indicated as follows:

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

etc..

+4
source

Source: https://habr.com/ru/post/1484616/


All Articles