Serverless to make any secondary mizi station
1. Support single-meter space
2. Inter general analysis
Now I only listed the framework, and the functions will be added one by one in the future. Everyone is welcome to discuss them together.
Implementation method:
Add record: *, type: URL-URL forwarding, forwarding address: address of this program (http://localhost/)
Code of http://localhost/index.asp:
The code copy is as follows:
<%
DNS_Key=Split(Split(Request.Servervariables("HTTP_REFERER"),"/")(2),".")(0)
%>
Final result:
http://ly.*.com/
Display the Linyi branch of this site
http://bj.*.com
Show this site's Beijing branch
New questions:
The sub-site is ready, but it can only access the home page of the sub-site. For the sub-site sub-page, it can only be accessed through a point connection. The connected web page is still the page under http://localhost/. If you pass http://ly.*.com/123.html, you will have a 404 error, and it indicates that there is no page~
Solution:
Access 123.html in the "root" directory by hanging query parameters (http://ly.*.com/?123.html) to access 123.html in the "root" directory
This program is now being debugged and will be uploaded to this site as soon as possible after completion. I hope it will be helpful to everyone's website building