V
V
vlad_was_here2014-09-05 15:06:55
Apache HTTP Server
vlad_was_here, 2014-09-05 15:06:55

How to organize dynamic creation of sub-domains?

Actually.
There is a website site.com.
Clients register here.
Each client needs to be given a sub-domain.
Something like username.site.com
Note the question is:
how do I configure Apache so that username.site.com is processed by the site.com/index.php script?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vlad_was_here, 2014-09-05
@vlad_was_here

Answer found!
ServerName site.com
ServerAlias ​​*.site.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question