Pan domain name resolution, how to let sub-domain name binding subdirectories
Source: Internet
Author: User
Pan domain name resolution, how to make sub-domain name binding subdirectories?
Domain name a.com pan domain name resolution to IP 8.8.8.8
Host binding domain name a.com
Then the first page lists the level two domain name hope
Do not manually bind, randomly generated two-level domain name binding to the corresponding level two directory
How do you do this, with pseudo-static or what?
------Solution--------------------
#让1. A.com Accessing the/WWWROOT/1 directory
Rewritecond%{http_host} ^1.a.com$ [NC]
Rewritecond%{request_uri}!^/wwwroot/1/
Rewriterule ^ (. *) $/wwwroot/1/$1
Rewritecond%{http_host} ^1.a.com$
Rewriterule ^ (/)? $/wwwroot/1/index.html [L]
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service