Docs/Subfolder hosting

Subfolder on Apache

Serve the blog at example.com/blog from an Apache site with mod_proxy.

First enable Settings → Subfolder hosting in the dashboard (your website + path). Then add this to your site's VirtualHost, replacing you.blogcms.app with your blog host and /blog with your path.

Apache# Requires: a2enmod proxy proxy_http ssl SSLProxyEngine on # /blog/ → /blog (one canonical URL) RedirectMatch 301 ^/blog/$ /blog # the blog and everything under it ProxyPass /blog/ https://you.blogcms.app/_subfolder/ ProxyPassReverse /blog/ https://you.blogcms.app/_subfolder/ ProxyPass /blog https://you.blogcms.app/_subfolder/ ProxyPassReverse /blog https://you.blogcms.app/_subfolder/
  • Keep ProxyPreserveHost off (the default) — the request must reach us with the blogcms host.
  • Run apachectl configtest && systemctl reload apache2.
  • Publish the blog once, then hit Verify setup in Settings → Subfolder hosting.