usually some personal stationmaster or company may own several websites at the same time. Because a few other sites are not high traffic, and each site is rented a virtual host space, it feels a little wasted. So, you may think that the virtual host can also be like a standalone server to place multiple sites? The answer is yes. However, because the number of IIS connections and cup occupancy per virtual host space is very limited, it is generally not recommended to place multiple sites within a single virtual host. But today, when it comes to being achievable, the world's data teaches you how to make aVirtual Hostput multiple sites on it!
① first set up a default home page index.asp
and then put the a station under the A folder .
B Station under the B-folder .
C Station is placed under the C folder
index.asp page files are as follows
<%if request.servervariables ("server_name") = "URL 1" Then
Response.Redirect "a/index.asp"
ElseIf request.servervariables ("server_name") = "URL 2" then
Response.Redirect "b/index.asp"
ElseIf request.servervariables ("server_name") = "URL 3" then
Response.Redirect "c/index.asp"
Else
Response.Redirect "aaa/index.asp"
End If%>
As mentioned above, the number of IIS connections and cup occupancy of the virtual host space is very limited, so this method only applies to personal sites with very little traffic.
② We can choose to rent a VPS orCloud Server. Because they have the same functionality and operation as the standalone server. The system can be set up to use IIS to place multiple Web sites, and its performance and security are much stronger than the virtual host. Is the price is more expensive than the virtual host. Of course, it's a lot cheaper than a standalone server.
World data teaches you how to implement a space to put multiple sites