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 6992197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:36:12+00:00 2026-05-27T19:36:12+00:00

This may be a server question, but I’m asking how to do this system

  • 0

This may be a server question, but I’m asking how to do this system in PHP before you vote to close as off-topic.

I’m setting up a custom cloning site system, where paid users can have their own software but on a custom subdomain build, e.g. user1.domain.com. I want to allow them to have their own paid domain pointing to my server replacing their built subdomain. However, I don’t know how to do this kind of process in raw PHP.

For example, on an administration page, they can input their paid domain and I want the domain to be added to BIND DNS/nginx on my server, but I need to know what I need take from there (except URL validation) such as checking if the domain is pointing my server when they enter the nameservers of my server from their domain manager (GoDaddy, 123-reg, etc) and so on and making sure the domain is properly active and can be taken well when accessing the new domain that replaces the built domain (nginx can do this?)

What steps should I take into making this kind of system? Is there any server support I need to take into such as cron jobs or such.

My server is running Ubuntu 11.10 with nginx 1.0.6.

EDIT: I already have a wildcard A record in BIND.

  • 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-27T19:36:12+00:00Added an answer on May 27, 2026 at 7:36 pm

    Just point *.domain.com to your server. Assuming you are running Apache, you just define your VirtualDocumentRoot in httpd.conf and you’re off and running. Nothing to do in PHP or anything else.

    Check out the documentation here: http://httpd.apache.org/docs/2.0/vhosts/mass.html

    UPDATED

    Didn’t catch you were using nginx, sorry about that – looks very similar to Apache:

    root /PATH/TO/WEBROOT/$host;
    

    in your server { config. http://wiki.nginx.org/VirtualHostExample

    Edit your configuration file (nginx.conf) and change the server section beneath http as shown in the VirtualHostExample at the link above, replacing the server name and paths with your server’s info.

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

Sidebar

Related Questions

This may be a basic question but I'm not very proficient in SQL Server.
This may be a question for Server Exchange but I am starting to feel
This may seem like a daft question, but i was wondering about how to
This may be a basic question but I am using app engine in eclipse
This may be a duplicate of some other question, but it's hard to search
Ok, so this may seem an elementary question. Maybe it is. But for the
This may seem like a silly question, but we are having an issue debugging
This may be a silly question, due to missing some understanding of java but
So, this may be a really stupid question, but I'm obviously missing something here.
This may be a simple question but I will throw it out anyway. My

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.