V
V
Vlad Odies2015-07-05 05:54:12
linux
Vlad Odies, 2015-07-05 05:54:12

Auto-create subdomains with the site during registration?

Hello. Interested in this question. How can I organize the following:
1. The user registers
2. When registering, the user specifies the name of the subdomain via ( input html )
3. After registering the user, a subdomain is created with the name specified in the input during registration
4. The archive with the site is unpacked into the subdomain folder by a script or command.
All this on VDS or Dedicated.
I would be grateful for any suggestions. I would like to have an idea how to implement this. What can I do myself, what will I have to order.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Camaro67, 2015-07-05
@odies

Subdomains themselves can be implemented at the web server level.
A few years ago I developed a website builder, if my memory serves me, the rules for apache took only a few lines.

S
Sergey, 2015-07-05
@Pjeroo

> 4. The script or command unpacks the archive with the site into the subdomain folder.
Why is this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question