World data teaches you how to implement a space to put multiple sites

Source: Internet
Author: User
Tags servervariables

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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.