NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
How to Host a Blog on a Subdirectory Instead of a Subdomain (davidma.org)
teach 2 hours ago [-]
Maybe should add "with Cloudflare Workers" to the headline

Because hosting a blog inside a subdirectory is like the most trivial webserver thing ever

ahme 2 hours ago [-]
Are we not just doing static html for blogs anymore?
Bender 28 minutes ago [-]
We could just enable auto-index and drop a bunch of .txt files into it.
cr125rider 49 minutes ago [-]
That doesn’t sound bloated enough. Too fast. Gonna give a user whiplash.
doublerabbit 8 minutes ago [-]
.htaccess that rewrites the .txt to HTML extension with help from regex in bash.

With that you bolt on a bootstrap v3 CSS library and using websockets for post updates. This feeds in to a webview component powered by django that interacts to an Angular php parser that uses Wordpress as the database translation layer.

taikon 2 hours ago [-]
I wanted to but it said it exceeds the character limit
gnabgib 2 hours ago [-]
Maybe(?): How to Host a Blog in a directory Instead of Subdomain with Cloudflare Workers
gnabgib 3 hours ago [-]
(2025) At the time (on a different domain, but not in a subdirectory) https://news.ycombinator.com/item?id=46050069
taikon 2 hours ago [-]
Yes I switched the domain. But davidma.co redirects to davidma.org.
gnabgib 2 hours ago [-]
It doesn't presently (maybe a config issue?) Cloudflare just never responds:

> Connecting to www.davidma.co(more..)

> HTTP request sent, awaiting response... (timeout)

theturtle 2 hours ago [-]
This is somehow news? I was doing this 30 actual years ago.

Long before Google and Cloudflare stunk up the internet.

2 hours ago [-]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 01:33:11 GMT+0000 (Coordinated Universal Time) with Vercel.