A few days ago I set up Hugo on my local machine (Mac mini running Catalina). I followed the quick-start guide: https://gohugo.io/getting-started/quick-start/, and I also created the dummy post called „My First Post”.
When I start the server using…
hugo server -D
…no error shows and (among others) I also see this standard message…
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
When I entered
localhost:1313 the browser said it cannot open the site.
Then I entered
127.0.0.1:1313 and it worked.
That was a good step forward.
But I wanted to get localhost:1313 working.
So, I tried…
sudo apachectl configtest
…and in the response, I saw
So I entered
alexanders-Mac-mini.local:1313 in the browser and it worked too.
Ok, you could say…
127.0.0.1:1313work, isn’t that good enough for you?
It would be.
But the problem is the link to the dummy post which is: http://localhost:1313/posts/my-first-post/. If I click the link, the browser (of course) cannot open it because it’s a
How do make localhost:1313 work?
I look forward to hearing from you