Hugo

A 3-post collection

Host Multiple Domains Served by haproxy on One EC2 Server

By My Ultimate Guide For Everything |  Jun 28, 2023  | ec2, aws, httpd, virtual-host, ubuntu, haproxy, wordpress, hugo
In the previous post, we explained how to serve multiple domains on one server using apache http server virtual host. In this post we explain the same concept except we will be using haproxy for load balancing and https support. How each domain is served really does not matter here but in my case I’m hosting two websites one served by hugo on 8080 port and another served by wordpress on port 8082.
Continue Reading...

Hugo Tag Page Does Not Work

By My Ultimate Guide For Everything |  Jun 24, 2023  | hugo, tags
I recently encountered an issue with tag pages not working properly in Hugo, a popular static site generator. Whenever I clicked on a tag link, instead of being directed to the corresponding tag page, I was redirected to a blank page served by hugo. Frustrating, right? After some investigation, I found a simple workaround to fix this problem: restarting the Hugo server. It seems that the issue stems from a caching or routing glitch within Hugo.
Continue Reading...

Hugo CORS Issue and the baseUrl Parameter

By My Ultimate Guide For Everything |  Apr 22, 2023  | cors, hugo, baseurl
CORS issue hosting a Hugo website Hugo is a popular static site generator that simplifies the process of creating and deploying websites. One of the key features of Hugo is its ability to configure the base URL for your website. However, if the base URL is set to the www version of the URL, you may receive a cross-origin reference error when attempting to access the naked version of the URL without the www prefix.
Continue Reading...