How to share one space for multiple websites

Source: Internet
Author: User
Nowadays, the virtual host space is getting bigger and bigger. Generally, a website cannot be used up (software or movie downloads are not listed in the List ).
So, how can we make the existing space value for use? Follow these steps:
Step 1: Create the steering control page
Create the default homepage file (usually "index. asp" or "Default. asp") for the website as follows:
<%
Select case request. servervariables ("http_host ")
Case "www.abc1.com" Domain Name 1
Server. Transfer ("index_abc1.asp ")
Case "www.abc2.com" Domain Name 2
Server. Transfer ("index_abc2.asp ")
Case "www.abc3.com" Domain Name 3
Server. Transfer ("index_abc3.asp ")
... Continue to add ......
Case else domain name n
Server. Transfer ("index_abcn.asp ")
End select
%>
Step 2: Create a redirected File
Create "index_abc0.asp"-"index_abcn.asp" as the homepage of each website.
Step 3: Resolve the IP addresses of multiple domain names to the same website Space
For example, resolve all the IP addresses of "www.abc1.com"-"www.abcn.com" to the web space of "www.abc1.com.
Step 4: Set website Web Services
Set the alias for the Web service to "www.abc1.com www.abc2.com www.abc3.com... www.abcn.com" (Note: Separate aliases with a space before)
Now you can use like "http://www.abc1.com ",...... , "Http://www.abcN.com" such top-level Web sites to access the same web space, and get different home page.
Immediately saved the cost of "N-1" space, is not very good!
Finally, it is explained that not all hosts support this method. You need domain names with administrative permissions, Web Service Control Panel with alias settings, and support from virtual host service providers.

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.