dns - Creating subdomains on the fly -


When someone signs up for a blogger or WordPress, then anyone gets their own subdomain Works How do I get that I have my own VPS / VDS / dedicated server?

In short:

  1. Create a wildcard domain in DNS (I.e., whichever is it. You reserve your IP.),
  2. Create a default virtual host in your web server and
  3. check the URL in your application.

How to do it depends on the technology you use. I give you some examples:

  1. How to set up wildcard domains and.
  2. To create a default virtual host, you need to create a web server without the need to create a host entry in Apache in the Apache, the first virtual host listed in the configuration file becomes the default host.
  3. Here, you can either rewrite the URL on the basis of (a) domain (i.e., the URL to convert the subdomain into parameters, examples for apache mod_rewrite :,), or ( B) Take a look at the host part of the URL (like Request.Url in ASP.NET). Additionally (sorry to overwrite your edit, a conflict was edited):

    Syntax of a wildcard, the normal DNS In the zone file format (described in RFC 1035

      * in a 198.51.100.3  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -