![]() I cannot see anywhere to set the default «server address» in config.toml, the only relevant variable seems to be baseURL. Python, serving an empty index.html file: $ python -m SimpleHTTPServer 1313 Note that binding to 0.0.0.0 gives the same result. ![]() Web Server is available at (bind address 10.0.10.117) Hugo, with the bind and baseURL params: $ hugo server -bind=10.0.10.117 -baseURL= So I ran the commands again, with the same arguments, to make the results actually mean something. Also, the content length of 263 was actually a random file being served by the Python server, it had nothing to do with Hugo. I ran curl against Hugo and the Python server using different arguments, and both servers served different content. I apologize, I should have been clearer in my first post. Hugo version: Hugo Static Site Generator v0.55.6/extended darwin/amd64 BuildDate: unknown I don’t know how to debug this any further, and I have not been able to find any relevant posts here or on GitHub, so any help is highly appreciated!Įdit: Binding to 0.0.0.0 makes the website available on localhost and 0.0.0.0, but not on the local IP. There are no firewalls or network settings blocking Hugo, as running a simple Python server on the same port works just fine: $ python -m SimpleHTTPServer 1313 * Connection #0 to host 10.0.10.117 left intact The error message is in Norwegian, so I’ll show you the output from curl instead: $ curl -v -I However, opening in any browser simply does not work. Using lsof and netstat, I can confirm that Hugo is running and listening to 10.0.10.117:113: $ lsof -nP -i4TCP:1313ĬOMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ![]() With the following result: Web Server is available at (bind address 10.0.10.117) However, I’d also like to test my website from my phone (I know I can resize my browser window, but it’s not the same), so I run the server with the following command: hugo server -bind=10.0.10.117 -baseURL= My website is available on just as you would expect. Allow me to explain what I mean by «does not work»:Įverything works just fine when I run hugo server without any optional parameters.
0 Comments
Leave a Reply. |