Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a hosted platform for publishing Markdown documents. Currently I offer a subdomain per user, but the number one request right now is custom domains.

My server stack is NGINX and uWSGI to handle user activities and reporting tools. The published documents are served statically straight out of NGINX.

I haven't tackled the feature request yet, but I've been doing some research and currently it looks like I would could solve it by using the redis2 and lua modules. Those two modules together should handle querying incoming Host headers against a key-value table in redis to match domains and user folders.

I would love your thoughts and experiences, and especially potential problems that might crop up and what to look out for.

Bonus: Anyone have a good experience with a third party domain provider, either selling through an API and collecting a referral fee for each bought domain?

share|improve this question
I have not tackled this, but for reference, I found some good points in this answer. – Jökull Nov 30 '11 at 10:54
I ended up tackling this myself with NGiNX and a cronjob. – Jökull Nov 29 '12 at 9:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.