Sub-Directory Blog with Docker & Hyvor Blogs

Host a blog in the subdirectory of your website using Docker. Use Caddy or NGINX as a reverse proxy, or host with Kubernetes.

If you have a website with Docker and are thinking about adding a blog, you are on the right track. A blog is a great way to share updates, write about what you are building, and give your SEO a nice little boost.

When it comes to hosting a blog, you've got a few choices. Out of many options, hosting it under a subdirectory like yourwebsite.com/blog, appears to be a good solution instead of spinning up a whole new subdomain.

Why? Because it keeps everything under one roof. Your branding stays tight, search engines love the shared domain, and you avoid the hassle of managing cookies and sessions across different subdomains.

In this article, I will walk you through how to host a Hyvor Blogs blog on a subdirectory while keeping your website running inside Docker. It is simpler than it sounds. By the end of this article, you will have a clean, containerized setup that serves both your website and your blog like a pro.

Set up Hyvor Blogs

First, you must create a blog and configure the basic settings for self-hosting.

  1. Create a blog at the Hyvor Blogs Console. You will get a subdomain, which you need in a later step.

  2. Configure hosting settings

    • Go to Settings → Hosting

    • Select the Self-hosting option for Hosting at

    • Set the Self-hosting URL to the absolute URL of the subdirectory where you plan to host your blog. For example,

      https://yourwebsite.com/blog. You can customize the subdirectory part (/blog) if needed.

    • Click Save