Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7991057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:11:11+00:00 2026-06-04T13:11:11+00:00

Something I’m trying to figure out now is to setup custom domain hosting so

  • 0

Something I’m trying to figure out now is to setup custom domain hosting so users can host a profile page on any domain of their choosing. I was able to get it to work now but it requires a lot of custom work.

My current setup is to have the user change their DNS settings to redirect to my domain. Then on my domain I add another virtual host to deal with this new domain and then update my Django middleware to look at the PATH_INFO within the request in order to choose the page to serve.

Is there a way this can be changed to automate this process so this can be done entirely automatically without modifying Apache or the middleware? I was thinking of using mod_rewrite to pass this info along to a specific page in Django and then doing a lookup in a table to see the page this page to display for this domain.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:11:12+00:00Added an answer on June 4, 2026 at 1:11 pm

    You should be able to set up your webserver such that it will accept any domain pointed at it. Once you’ve done that, the user needs only to create an A record pointing their domain or a subdomain to the IP address of your site, and then their domain will bring up your site.

    Then, you would just need to setup some domain checks in your views (request.get_host()). For instance, your index view should branch on the host, loading your homepage for your domain and the user’s profile for any other domain. You can have the user add their domain to their profile and then use that to lookup the right profile. You might need to add some middleware to protect other views from being accessed by anything but your domain, but that’s basically the process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Something is eluding me ... it seems obvious, but I can't quite figure it
Basically, what I'm trying to create is a page of div tags, each has
I have a jquery bug and I've been looking for hours now, I can't
Something went wrong with my code. The insert code does not work. Can someone
Something is wrong with my MySQL query below but I can't find the problem.
Something I have always been interested in out of curiosity, is there a tool
Something that would really reload the page or resource, ignoring whatever might be in
Something like var life= { users : { guys : function(){ this.SOMETHING.mameAndDestroy(this.girls); }, girls
Something I noticed just now. Definition of exception in the standard (18.6.1): class exception
Something that has been puzzling me for a bit now, and an hour or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.