New Ants Move Mall website Build virtual host move to server

Source: Internet
Author: User
Keywords Mall server website building virtual host virtual host new Ant move

&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Two days ago as a result of database tension, hundred Yingxiu had to move from the virtual space to the server, today Xun Xiangyang to share the experience of this move.

Two days ago as a result of database tension, hundred Yingxiu had to move from the virtual space to the server, today Xun Xiangyang to share the experience of this move. The WIN32 bit system is used, and now take WIN32 as an example to illustrate that when a Web site is replaced from a virtual host to a server, the following points are roughly included:

Backup data

Most stationmaster think this backup data is to backup FTP inside file, in fact, backup FTP inside file is just an empty shelf, FTP above content is System file, HTML page, picture, FLASH, CSS file and so on, but the website real data is stored

In the database, then we need to back up the data two aspects of the content, FTP inside the file content and database data. Usually in the background of the system settings inside will have a database backup function, and there are detailed instructions, just follow the requirements

Click on the Backup button to back up the data to the appropriate FTP folder below, the system will have corresponding prompts.

Second, build the FTP

The virtual host is built on the server, then the FTP of the virtual host is also created from the server. Therefore, we need to build FTP on the server to meet the needs of the site.

(1) Create an FTP user, my Computer right-admin-local Users and Groups-users, then to the margin right, click New User. At this point, the user name and password can be entered, and then the following "User must change the password at the next login" to remove the check, select the Secret

The code never lasts.

(2) Configure the FTP Account membership group, right-click the user selection attribute that you just created, and then select Membership, delete the Users group that is subordinate to, and add the guest guest group.

(3) Configure the FTP directory, right click on the user selected properties just created, and then open the configuration file, local path to write your site stored places, such as: D:web point to determine.

(4) Then right-click the Web folder settings.

Here is the full video address: http://www.iisp.com/vhost/?s=lily

Iii. Database Settings

There are usually several versions of the database system on the server, you can choose the appropriate data to install according to the version of the server, installation tutorial is more cumbersome, take MYSQL2005 as an example, this has the whole video.

Iv. Domain Binding

First through the taskbar "Start-All Programs-Administrative Tools" to find Internet information Services (IIS) Manager and then select the FTP Site-right-Properties-site, IP address to fill in the service provider to you, and then point advanced access to the site address of the configuration window

, other than the Tube, host header value write your primary domain name. For example: www.baiyi37.com

V. Uploading data to FTP

This step will basically, use FLASHFXP to upload to the FTP (FLASHFXP inside can choose binary transmission mode), the binary way advantage is data transmission one-to-one, not data loss.

Six, 301 redirect

The 301 redirect on the IIS server is different from the virtual space, you can not write the configuration file directly to the server, but need to rebuild a new site empty. First through the taskbar's start-All programs-Administrative tools

Internet Information Services (IIS) Manager and then select the FTP Site-right-Properties-home directory, and you can see the redirected URL, which is now filled in with a redirect to a URL. The following figure:

Seven, 404 Page Setup

First find Internet Information Services (IIS) Manager and select FTP site via the start-all programs-Administrative tools on the taskbar-right-Properties-custom error-Select 404 Page-Select and open message type-set to URL type URL

Fill in the/404.html and finish.

Pseudo-Static settings

Pseudo-static on the server need to install a component called Isapi_rewrite, play http://www.iisp.com/vhost/?s=lily Select the latest version for: Isapi_rwl_x86_0078.msi, Do not understand the English friend recommended the use of Youdao translation, can be the entire network

Station translation. Then install and then need to configure on the server.

Locate the Internet Information Services (IIS) Manager by using the start-All programs-Administrative tools in the taskbar and select the FTP site-right-property-ISAPI filter-Add, and then enter the following figure:

After installation, the Httpd.ini of a read-only property is automatically generated, to be changed to a writable property, and then a pseudo static rule is written under the file:

[Isapi_rewrite]

# defend your computer from some worm attacks

Rewriterule. * (?: global.asa|default.ida|root.exe| ...). * . [F,i,o]

Rewriterule ^ (. *)-htm-(. *) $ $1.php?$2

Rewriterule ^ (. *)/simple/([a-z0-9_]+.html) $ $1/simple/index.php?$2

#Code by Josh @ phpwind 2008-10-08? ([a-za-z]+)

Basic on these content, the beginning may be more difficult to understand, and so you are skilled to know, in fact, and not imagine that difficult.

Related Article

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.