In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you how to use the user name to do the secondary domain name of asp, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
How to use user name as second-level domain name in asp
1. Go to the domain name management place and parse * .aspbc.com to the IP of your server.
Enter the domain name management, find the host record resolution (A record), click "add Host record", and then enter "*" in the pop-up box. Note that you cannot enter "* .aspbc.com". Click OK, then enter the IP address: *. *, and then click OK. All that's left is to wait for dns parsing, which will take about two hours.
2. Now log in to the server and do some processing in the IIS on the server.
The default site on the server is an example of a pan-domain name. if you do the first step, you can open the default file under the default site by typing any * .aspbc.com.
Usually the default site will be banned, so we have to manually create a method similar to the default site.
Create a new website in IIS in the same way as a normal new site, the most important thing is that the host header must be left blank (this is the most important).
How to use user name as second-level domain name in asp
3. After the above two steps, you can open the default files (such as index.asp) in this site through any second-level domain name, but the open pages are all the same, so you need to call different contents according to different user names and display them. To do this, you need to get the user name from the secondary domain name, then go to the database to query the relevant information about the user, and then display it on the page.
DimHostName
HostName=LCase (Request.ServerVariables ("SERVER_NAME"))
HostName=Replace (HostName, "www.", ") 'remove the previous www
IfInstr (HostName, "aspbc.com")
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.