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:
- Create a wildcard domain in DNS (I.e., whichever is it. You reserve your IP.),
- Create a default virtual host in your web server and
- check the URL in your application.
How to do it depends on the technology you use. I give you some examples:
- How to set up wildcard domains and.
- 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.
- 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
Post a Comment