Previous steps:
Current needs:
人生最曼妙的风景,竟是内心的淡定与从容!
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']).
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; } }
1. Domain name pan-resolution 2.apache uses mod_rewrite
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']).
nginx should be able to do it, and it’s a good idea 0.0
1. Domain name pan-resolution
2.apache uses mod_rewrite