Comment

Comment by danpalmer

Isn't this all better implemented in the nginx/apache server in front of the application?

I've just done a very similar thing for my Django hosted website, but didn't touch Python at all for it.

Edit: Here's a blog post where I detail the steps to set this up in Nginx - https://news.ycombinator.com/item?id=9256200

parent danpalmer 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton