Previous steps:
Current needs:
phpcn_u15822017-05-16 17:05:30
Use pan-parsing processing. First, parse *.example.com to example.com, so that all subdomain names will point to example.com. Next, judge the request, take out the * part, and make the corresponding jump (for example, use $_SERVER['SERVER_NAME']).
曾经蜡笔没有小新2017-05-16 17:05:30
nginx should be able to do it, and it’s a good idea 0.0
server{
listen 80;
server_name sec-domain.domain.com;
location / {
proxy_pass domain.com/sec-domain;
}
}