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

  • Home
  • SEARCH
  • 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 6996055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:06:28+00:00 2026-05-27T20:06:28+00:00

I am building a RoR3 site that generates a microsite for each client. At

  • 0

I am building a RoR3 site that generates a microsite for each client. At this moment they enter to their microsite using the url http://www.site.com/clientid , but I want to register their own domain programatically, so they will enter to http://www.clientid.com and they will be redirected to my server. Is there any way to do that?

  • 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-05-27T20:06:29+00:00Added an answer on May 27, 2026 at 8:06 pm

    Have the client point the domain to your IP using the DNS management interface of the registrar. (More technically this would result in the creation of an A record or an AAAA record but this is not your concern).
    Once the DNS is propagated, entering www.clientid.com in the browser will make a request to your server (your rails app). There you can selectively serve content based on the domain.

    class ApplicationController
      before_filter do
        @current_account = Account.find_by_domain(request.domain)
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

building a site using PHP and MySQL that needs to store a lot of
building a site which has content for each section. urls range from; /work/ /work/print/
Building an MVC 2.0 web site and using Content Delivery Network (CDN) in my
Building a site on CargoCollective, but it appears they use jQuery 1.4.2 which seems
Building an app using a calendar on a Google Apps domain that has SSL
Building a mobile site and wanted to create a rotator that would work just
Building a client-side swing application what should be notified on a bus (application-wide message
Building a website that has English & Japanese speaking users, with the Japanese users
Building a sample ASP.NET MVC app. Using the Membership API for authentication. For whatever
Building a commercial product may use various open source libraries that have use of

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.