Current location - Recipe Complete Network - Catering franchise - How to set up a virtual host
How to set up a virtual host
The so-called virtual host is to divide a server running on the Internet into several "virtual" servers, and each virtual host has an independent domain name and a complete Internet server (supporting WWW, FTP, E-mail, etc.). ). Different virtual hosts on a server are independent and managed by users themselves. However, a server host can only support a certain number of virtual hosts. Beyond this number, users will feel that performance will drop sharply. Virtual hosts use special software and hardware technologies to divide server hosts running on the Internet into "virtual" hosts. Each virtual host has an independent domain name and a complete Internet server (WWW, FTP, Email, etc. ) function. Virtual hosts are completely independent and can be managed by users themselves. From the outside world, each virtual host is exactly the same as an independent host. Shi Sheng Network provides high-quality network environment and servers for small and medium-sized customers, and is monitored by senior network managers.

■ Hardware conditions of the virtual host

Trial: Virtual hosting service providers usually provide users with a trial period of several days before purchasing their services. You can learn about the performance of the virtual host these days and choose a suitable "big family" for your web page and email.

Speed: The network speed of a virtual host with about 100 users using telecom backbone lines is definitely much faster than that of an independent host connected through low-speed lines such as ADSL.

Stability: Of course, in addition to speed, we should also pay attention to the stability and security of the network environment, such as whether the service provider uses Cisco and 3Com routers to connect to the network, whether it has purchased a gateway firewall, and whether there is a special person to monitor all kinds of attacks from the network 24 hours a day ... Only the host service provider with the above conditions is our chosen goal.

Some virtual hosting service providers randomly find a low-bandwidth line, make do with some equipment, find two technicians who know how to debug Windows 2000, and then rush to provide services. We don't recommend it no matter how cheap it is.

Service stability comes from the infrastructure of service providers. Configure high-end servers with redundant devices and RAID cards; UPS and emergency generator to ensure stable power input; There are devices to maintain constant temperature and humidity, and so on. Of course, these hardware facilities are sometimes something we can't see with our own eyes. Therefore, it is very important to know more about the service provider through various channels (such as the service provider's website) before buying! After all, only by knowing yourself and yourself can you find a suitable host!

■ How much space is needed?

The hard disk space provided by the virtual host server is divided into independent Web space, database space and independent post office space. The size of virtual host space mainly depends on the amount of information published. If your website contains about 10 to 150 pages, and each page exceeds 100 KB, then you can rent 60MB of space. If there are more than several hundred pages and you need database support, the corresponding space you need should be between1200MB and 200mb. When the actual required space is insufficient, you can make up the difference and apply to the service provider to increase the space size; If you buy a lot of space from the beginning, you will never use that much and you can't return it. This is undoubtedly a waste of money.

■ Software conditions of the virtual host

The server of virtual host generally adopts Windows 2000(NT) and UNIX(linux) server operating systems, both of which have their own advantages. Database space is also divided into two categories: IIS 5.0/Access database space on Windows 2000 platform and MySQL/PHP database space on Linux platform. However, I personally prefer to choose Unix(linux), but for enterprise users who often call various databases and need to design ASP web pages, they can only use Windows 2000 platform, and Unix systems support PHP.

■ Location and price

You must also carefully consider the storage location of the server when purchasing. If the information dissemination scope of the website is abroad, renting a virtual server in the United States is the best choice, because the network bandwidth in the United States is the largest; If the publicity scope is mainly in China, it is best to rent servers at domestic telecom nodes. Everyone is very sensitive to price. Some telecom service providers will have higher prices, but now with the rise of many virtual hosting service providers, the price of virtual hosting has been much lower.

■ After-sales service

Common after-sales problems, such as "unable to create mailbox" and "inaccessible homepage", are probably often encountered by many friends of virtual hosts. Some service providers put sales first, and their after-sales service is not perfect. For example, they just make "Yi Meier" links for email setting methods, FTP setting methods and technical issues on the home page. The service hotline in the advertisement is the local telephone number of the service provider. If a foreign friend has a problem making a long-distance call, he has to pay the bill himself. Companies with local after-sales service support and national free 800 after-sales telephone support undoubtedly put us at ease before buying. Before buying, you can pretend to be a customer and ask some questions. Pay attention to the after-sales service quality and attitude of the service provider. A virtual host with good after-sales service will be much more convenient to use in the future.

Establish:

Install IIS 5

Install through Start → Settings → Control Panel → Add/Remove Programs: Click Add/Remove Windows Components in the Add/Remove Programs window. After searching for a period of time, the system will display a window for selecting Windows components, check Internet Information Services (IIS), and then complete the installation step by step according to the prompts.

Web service initial stage

After installing IIS, Web publishing has been started as a system service program. Let's see how to create a simple Web server.

1. You can start the Internet information service management tool through Start → Programs → Management Tools → "Internet Service Manager", and all the settings of IIS are here.

2. Right-click the host name on the left side of the window and select New → Website to build your own Web server.

3. Go to Next in the subsequent Website Creation Wizard and fill in the description of the website you want to create in the new window. This paper takes PCD as an example.

4. Select your IP address in the "IP Address and Port Settings" window, and use the default other ports and host headers here (details will be given later).

5. The "Next" to "Website Home Directory" setting window is filled with the directory where the website files are placed (in fact, it can also be set to other hosts in the same domain in the local area network, so I won't go into details here). You can also find it by clicking the Browse button. This paper takes E:\Pcd directory as an example.

6. The next step is to set the "website access rights". As long as you follow the default settings, you basically set up a website. Below you can put all kinds of page files in your home directory, so that others can enter your IP address in the browser for access.

The website is not built, and the rich and wonderful web content is the most important thing. Of course, reasonable settings are also essential:

1. Change the user home directory-the site home directory was specified when it was created, but you can also modify it later. On the left side of the Internet information service management tool window, right-click the name of the site you established, and then select Properties (all settings will be made here later). In the properties window that appears, select the tab page of the home directory, change the local path and apply it.

2. Change the default document-the default document is the startup file of the Web service. For example, suppose your IP address is 202.98.123.11,and your designated home directory is E:\PCD, and there is a file named "/Default.htm" under this directory, so that others can enter 202. 98. 65438 in the browser and they will open you. The default startup documents for IIS are Default.htm and Default.asp. If you don't like it, you can add it yourself on the "Documents" tab of the site properties and move it to the front with an arrow next to it.

3. Configure the log file-the log file is the record of the visited site. It goes without saying that you can record all kinds of information of visitors through the settings. Its default location is \WinNT\ System32 \LogFiles\, and its settings can be found in the "Website" tab page of site properties. Click the "Properties" button next to it to set the logging interval, log file storage path and recording content.

4. Change the properties of the website directory-imagine that your web server is like a museum, and most pages allow everyone to visit the exhibits, such as the public can visit the museum exhibition hall. However, you may want to lock some special rooms, such as offices and laboratories, and don't want the public to visit these rooms; Therefore, you also need to set the access rights of each directory of the website. Right-click the directory in your website whose properties need to be changed, and then select Properties. In the Contents tab, you can select the check boxes of various properties to set them. In general, Directory Browsing is best not allowed (it is turned on by default. In addition, you can set authentication control and IP address control in the Directory Security tab page.

Web services advanced

In fact, the above article can let you build and maintain an ordinary website. If you are not satisfied and want to know some skills of maintaining multiple sites on the same server, the following text can give you some inspiration. ...

Generally speaking, we can maintain multiple sites on the same server in three ways: assigning ports, addresses and host names. Because each website has a unique logo, which consists of three parts, used to receive and respond to requests: port number, IP address and host name. By changing one of the logos, you can maintain multiple sites on one computer.

port number

By using additional port numbers, multiple sites can be maintained with one IP address. When visitors want to visit the site, they need to append the port number to the IP address (except for the default website, which uses port 80). Describes a computer that uses port numbers to maintain multiple websites. Maintaining multiple sites in this way requires visitors to enter the actual digital IP address before the port number, and cannot use the host name and "friendly name", so it is more troublesome for visitors. Specific configuration method: On the right side of the Internet information service management tool window, right-click the name of each site and select Properties. In the Property Settings window that appears, select the Website tab page and change the TCP port corresponding to each site.

Multiple IP addresses

To use multiple IP addresses, the host name and its corresponding IP address must be added to the name resolution system (usually DNS). After that, visitors only need to type the text name in the browser to visit the website. If you use multiple IP addresses, you need to attach a network card to each IP address or bind multiple IP addresses to the same network card. Describes a computer that uses multiple IP addresses to maintain multiple websites.

In practical use, you need to set multiple IP addresses first. I believe everyone knows that a network card corresponds to an IP address. For a network card corresponding to multiple IP addresses, it is necessary to change the TCP/IP settings of the network card: Start → Settings → Network and Dial-up Connections → Local Connections → Properties. Select the Internet protocol (TCP/IP), and then click Properties. When it appears, you may have some doubts about the working mode of multiple IP addresses of the same network card when you see it here. In fact, when you visit the outside world, you only use the first IP address (don't think that you can hide your identity by setting a few more IPS), but when you visit these IPS outside, all the IP addresses you set can be connected to your computer.

Setting a different IP address for each site in IIS is very simple: right-click the name of each site on the right side of the Internet information service management tool window, and then select Properties. In the Property Settings window that appears, select the Website tab page and change the IP address corresponding to each website.

Host header name

Finally, you can maintain multiple sites with a host header and a static IP address. Similar to the previous method, the host name needs to be added to the name resolution system (usually DNS). The difference is that once the request arrives at the computer, IIS will use the host name passed in the HTTP header to determine the site requested by the customer. Describes a computer that maintains multiple websites using the host header name.

In actual use, you only need to right-click the name of each site on the right side of the Internet information service management tool window and select Properties. In the property setting window that appears, select the website tab page, click the Advanced button, and add it to the column "This website has multiple logos".

Step 1: Customers apply for website construction.

1, customers put forward the basic requirements of website construction according to their own situation.

2. Provide relevant words and pictures.

A. Company written materials and company picture materials;

B. the website has realized the functional requirements;

C. Basic design requirements of the website;

Step 2: Make a website construction plan.

1. Both parties negotiate, modify and supplement the website construction content and reach an understanding;

2. Make a website construction plan for customers;

3. The two sides determine the specific details and price of the website construction plan;

Step 3: Sign the agreement and pay the advance payment.

1. Both parties sign the website construction agreement;

2. Customers provide more detailed picture materials (if you need to take photos, we can take digital photos at home for free);

Step 4: The customer reviews the first draft and finalizes it after confirmation.

1, complete the first draft design according to the website construction scheme;

A. homepage style design;

B. function bar setting;

C. website architecture diagram;

2. The customer reviews and confirms the first draft design;

3. We have completed the overall production of the website;

Step 5: Website testing, online browsing by customers, acceptance and payment of the balance.

1. The customer carries out the acceptance work according to the agreement and contents;

2. After the acceptance, the customer will issue a "website construction acceptance confirmation";

3. Balance paid by the customer;

4. We provide customers with the service of the agreement content;

Step 6: Post-maintenance of the website

1. Provide the website maintenance manual to customers.

2. We maintain and update the customer's website according to the website construction agreement and website maintenance manual.

1, domain name application

By registering the domain name, the enterprise has a unique logo on the global Internet, which is also the house number and entrance logo of all social users browsing the enterprise website. Websites composed of domain names will be widely circulated on the Internet like trademarks. A good domain name will help you shape your international image on the Internet in the future. At the same time, domain names are unique in the world, and the resources of domain names are limited. Whoever registers first has the right to use it, so you should consider whether to protect your intangible assets on the Internet now. Common. Com is international domain, and. Com.cn is a domestic domain name. The definition of domain name should not only consider the nature of the company and the characteristics of information content, but also make the name concise, easy to remember and impactful.

2. Establishment of network platform

With the house number of your own domain name, you need a space to build a house and set up your own company, and this space is the server on the Internet. Usually, there are several ways for enterprises to choose.

Virtual host mode: the so-called virtual host is to divide each computer into a "virtual" host by using special software and hardware technology. From the outside world, a virtual host is no different from a real host. We suggest that enterprises use virtual host mode to surf the Internet. General virtual host providers can provide users with 10 megabytes, 30 megabytes and 50 megabytes of virtual host space, with at most one server. Users can choose according to the content setting and development prospect of the website. A web page takes up about 20-50 kilobytes of disk space, and 65,438+00 megabytes can hold about 200-500 pages, but if you have special requirements for the website, such as more pictures, more animations, files to download or a database, you need more space (you can go to the "free resources", where there is a lot of free space).

Independent server: For enterprises with strong economic strength and large business volume, they can also buy their own independent servers, but this requires high expenses and a lot of manpower and material resources, which add up to dozens of times that of virtual hosts.

3. Web page design and maintenance

You can design your own web pages or make them by professional web designers. First of all, we must determine the overall planning of the whole web page system, introduce the scope and purpose of the content, and then collect all the text materials and pictures that need to be put on the website, provide the collected materials to us, and give the rest to our designers. According to the company's business scope, decide whether to adopt both Chinese and English versions. After the web design is completed, the most important task is to update the web content in time. You can't leave the page unchanged for a long time, which will affect the traffic of the website.

4, website publicity and promotion

First of all, the enterprise itself should have the awareness of promoting the website: add the company's website, such as business cards, office supplies, promotional materials, media advertisements and so on. No matter where the company information appears. In addition, online advertising and search engine registration are the main ways to promote websites at present. You can log in to our golden advertising space in Shaoguan Information Port or other portals, and register a search engine to register your site to a world-famous service station. This will not only make your website easy to find, but also increase the number of visitors. By making friendly links on some websites, the visibility and visits of enterprise websites can be significantly improved.

5. Develop e-commerce.

The steps of making a web page are generally divided into five steps:

1, insert table

Step 2 Enter the text

Step 3 insert a picture

Step 4 insert a link

Step 5 insert background

(1) Insert background picture

(2) Insert background music

..........................................................

1, insert table

Frame words, pictures, etc. Use tables to define their respective positions on the page.

Operation method:

Click the "Insert Table" tool icon and the "Table-Web Page Dialog Box" will appear.

Adjust number of rows and columns.

Click "insert"

Step 2 Enter the text

Enter the text content of your own web page.

Step 3 insert a picture

Insert the selected picture to decorate the webpage.

Operation method:

Landing in www.google.com.

Click "image"

Enter the name (keyword) of the picture you want in the box below.

Select the picture you want.

Align the pictures, right-click and click Copy.

Return to HTML content editor

Click the cursor to the position where you want to place the picture.

Align the cursor, click the right mouse button, and then click Paste.

The size of the picture can be adjusted at will.

Operation method:

Click on the picture in the HTML content editor (9 small boxes appear around the picture).

Aim at the small box at the top, bottom or left and right (the cursor will turn into a double arrow).

Hold down the left mouse button and drag. Loosen when the size is suitable.

Step 4 insert a link

Operation method:

Select (drag with the left mouse button and turn black) the text or picture to link.

Click the blue ball (hyperlink) in the toolbar.

(The Hyperlink window appears)

On the second line URL(U): Enter the URL (the location you want to link to).

If you don't know the URL you want to link to or can't remember it, you can "copy" the URL you want to link to that webpage and then "paste" it back to the URL(U). After this "paste", you need to move the cursor to check it before clicking "OK".

Click OK (in the hyperlink window).

Click on the blank space of the page, and you can see that the text or picture to be linked has turned light blue, with an underline below, indicating that the link has been successful.

Step 5 insert background

(1) Insert background picture

Operation method:

Open the website of yh 178.

Click on the friendship link

Click "background picture"

Right-click the picture

Click Save Picture As.

The Save Picture window appears.

The first line "Save in (i)": Select the location where your picture is placed (it is recommended to put it on the desktop for easy deletion).

File name (n): If you want to change the name, please delete the original file name and enter it again.

Click "Save"

(So the pictures are always kept on the computer desktop. )

Return to HTML content editor

Click the penultimate icon (background picture) in the second row of the toolbar.

(The window where the background picture is inserted appears)

Click "browse"

The Select File window will appear.

Select the picture code you just saved on the desktop. As long as you click it, it will automatically appear in the file name (n) column.

Click (o).

Automatically return to the Insert Background Picture window.

Click "insert"

A background picture will appear on your web page. )

Finally, don't forget to upload the background picture you choose to the "Web page making system".

(2) Insert background music

Operation method:

Open the website of yh 178.

Click on "Friendship Link"

Click "background music"

(A list of songs appears)

Click the left button to audition.

Download and right-click

Right-click the selected track.

Click Save Target As (a) ...

The Save As window will appear.

The first line "Save in (i)": Select the location where you put the music (it is recommended to put it on the desktop for easy deletion).

File name (n): If you want to change the name, please delete the original file name and enter it again.

Click "Save"

So the music has been saved on the computer desktop. )

Return to HTML content editor

Right-click to copy the following format:

& ltbgsound src= "。 mid" loop="- 1 " >

Right-click the copied format and paste it into the Insert Script Code box.

Enter the code of the selected music between the formats and.

Finally, don't forget to upload the music you choose to the "network production system".