Win2003 flexible implementation of multiple Web site setup method [graphic]_win server

Source: Internet
Author: User
Tags anonymous ntfs permissions
first, the establishment of virtual host

So there are two sites on a server , how do users access both sites? There are three different ways to do this.

1> two Web sites use a different IP address. This allows users to enter http://192.168.100.1 in the browser when accessing the first Web site, and enter http://192.168.200.1 in the browser to access the second Web site. (hypothetical)

2> two Web sites use the same IP, but use a different port number. This allows users to enter http://192.168.100.1 in the browser when accessing the first Web site, and enter http://192.168.100.1:81 in the browser when accessing the second Web site

3> two Web sites use the same IP and port number, but use a host header for the second Web site so that users enter the http://192.168.100.1 in the browser on demand when accessing the first Web site, and enter the http://host header in the browser when accessing the second Web site.

Create a new web site

In the Internet Information Services (IIS) Manager window, double-click the Web site icon and right-click Default Web site, and select new------Web site. The Web Site Creation wizard window opens, click Next, start creating a Web site, enter a description of the site, and then click Next.

There are three ways to set up IP address settings, Web site IP address, Web site TCP port, and host header for this site. Can be selected on demand.

Enter the directory where the Web page files for this site reside. To set permissions for Web site access, you generally do not need write permission. Click Next to complete the creation of the new site.

Configure site methods for different IP addresses

Specific methods:

In IIS Service Manager, right-click the new Web site (movie service), select Properties, and change the IP address under the Web Site tab.


Configure site methods for different ports

Specific methods:

In IIS Service Manager, right-click the new Web site (movie service), select Properties, and under Web Site tab, change the port to a different value, such as 81.

Configuring different Host Headers

Specific methods:

In IIS Service Manager, right-click the new Web site (movie service), select Properties, click Advanced after the IP address under the Web Site tab, and click the Edit button in the Advanced Network Identification window that pops up.

Next, in the "Add/Edit Network Identification" window, the "Host header value" is displayed.


After you set up the host header, you also need to configure the DNS server to add Host header values, which is the client can resolve the IP address of the host header, you can use the "http://host header" To access the Web site.

Second, the Web site's scheduling error

• Procedures for client access to Web sites

1> when a client accesses a Web site, the server first checks to see if the client IP address is authorized

2> then check that the user and password are correct (anonymous users do not need a password)

3> then checks whether the home directory has Read permissions set

4> final check for NTFS permissions on Web site files

• Common Mistakes

1, error number 403.6

Analysis:

Because the IP address of the client is set to block in the Web site.

Solution:

Open the Site Properties-> the Directory Security tab-> IP address and domain name restrictions-> Click the Edit button and delete the denied IP segment.

2, error number 401.1

Analysis:

Because the user is using anonymous access to the account (the default is the IUSR_ machine name) is disabled, or does not have access to the computer, will cause users inaccessible.

Solution:

(1) To see if the anonymous account for site security settings in IIS Manager is disabled, and if so, try to enable it in the following ways:

Control Panel-> Management tools-> Computer Management-> Local Users and groups, enable IUSR_ machine name account. If it is not resolved, proceed to the next step.

(2) View the default anonymous access account for the site in IIS Manager or the group to which it belongs, in the local security policy, if there is no attempt to grant permissions with the following steps:

Start-> program-> Administrative Tools-> Local Security Policy-> security Policy-> Local policy-> User rights Assignment, double-click "Access this computer from the network" to add the IIS default user or the group to which it belongs.

Note: The general custom IIS default anonymous access account belongs to the group, and for security, there are no special needs, please follow this rule.

3, error number 401.2

Reason: Anonymous authentication was turned off

Solution:

Open Site Properties-> Directory Security-> authentication and access control-> Select Enable Anonymous access, enter a username, or click "Browse" to select a legitimate user, and then confirm the password two times.

4, Error number: 401.3

Reason:

Cause an IIS anonymous user generally belongs to the Guests group, and we generally assign the right of the hard disk of the site to the Administrators group, at this time, according to the principle of inheritance, the site folder is only members of the Administrators group can access, Insufficient NTFS permissions to access the file by IIS anonymous users, causing the page to be inaccessible.

The second reason is to set the permissions of the Web site to be unreadable (IIS anonymous users) in IIS Manager.

Solution:

Permissions for IIS anonymous users to access the Web site folder.

Method 1: Enter the security options for this folder, add IIS anonymous users, and give the appropriate permissions, typically read-only.

Method 2: Right-click the site, select permissions, and open the Permissions Settings window. and gives IIS anonymous users read-only permissions.

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.