Home>

In fact, we were also confused at the beginning of setting up an asp.net site.After searching the information and sorting it out,Share it with everyone.

1. Create site-specific users (create two new site-specific users,hebcai.com belongs to the guests group, and hebcai.com _wpg belongs to iis_wpg (asp.net dedicated user).

(1) Select "Manage" from the right-click menu of "My Computer", open "Computer Management", select "User" from "Local User's Group", and then select " new user". Create a new user name "hebcai.com" and set a complex password for it,Select both the "User cannot change password" and "Password never expires" option,Then click the "OK" button.

(2) Create "hebcai.com_wpg" user in the same way.

(3) Select the "Properties" command from the right-click menu of "hebcai.com", and click "Delete" on the default "users" in the "Affiliation" tab. Then click the "Add" button, enter "guests" in "Enter object name to select" in the "Select Group" dialog box, and click the "OK" button.

(4) Select the "Properties" command in the right-click menu of "hebcai.com_wpg", and click the "Delete" button on the "Users" tab in the "Users" tab. Then click the "Add" button, enter "iis_wpg" in "Enter Object Name to Select" in the "Select Group" dialog box, and click the "OK" button.

2. Set site-specific folder properties

(1) Create a site-specific folder d:web \ hebcai.com.

(2) Select the "Properties" command in the right menu of "hebcai.com", and then select the "Security" tab in the "hebcai.com Properties" dialog box.

(3) Click the "Add" button, enter "hebcai.com;hebcai.com_wpg" in "Enter object name to select", and click the "OK" button.

(4) Select the "hebcai.com" user, select "Modify, read and run, list folder directories, read, write", and click the "Apply" button.

(5) Set the attribute of user "hebcai.com_wpg" in the same way.

(6) Click the "OK" button to close the "hebcai.com Properties" dialog box.

3. Establish a ftp site that isolates users, and a dedicated virtual directory for hebcai.com.

(1) Right-click "ftp site" and select "New-ftp" site, the welcome interface pops up,Click the "Next" button to continue.

(2) Enter the site description "hebcai.com" and click the "Next" button to continue.

(3) set ip and port number,If ip is 192.168.5.254 and port number is 21, click the "Next" button to continue.

(4) choose to isolate users,Click the "Next" button to continue.

(5) Select the ftp main path as d:\ web, and click the "Next" button to continue.

(6) Set the ftp permission, check the two items "read" and "write", and click the "Next" button to continue.

(7) Click "Finish" to successfully establish the ftp site. And select "New", "Virtual Directory" from the right-click menu, and follow the wizard to set it.

have to be aware of is,In "Virtual Directory Access Permission", be sure to check "Read" and "Write".

4. Establish a site-specific application pool

(1) Select "New-Application Pool" from the "Application Pool" right-click menu.

(2) Enter the application pool id "hebcai.com" in the "Add New Application Pool" dialog box and click the "OK" button.

(3) Select "Properties" from the right-click menu of the application pool "hebcai.com".

(4) In the "hebcai.com Properties" dialog box,Select the "Identification" tab, select "Configuration", enter the username "hebcai.com_wpg" and the corresponding password,Click the "OK" button. After entering the password again,Just click the "OK" button again.

5. New web site

(1) Select "New-Website" from the right-click menu of "Website", the welcome interface pops up,Click the "Next" button to continue.

(2) Site description:hebcai.com, click "Next" to continue.

(3) The website IP is "192.168. 5.254", the TCP port is 80, the host header is "www.hebcai.com", click the "Next" button to continue.

(4) Select "d:\ web \ hebcai.com" as the main directory path, and click the "Next" button to continue.

(5) Be sure to check "Read and Run Scripts (asp)" for website access permissions, and click the "Next" button to continue.

(6) Click the "Finish" button to successfully establish the site.

(7) Select the "Properties" command from the right-click menu of the website "hebcai.com", and click the "Edit" button in the "Directory Security" tab. In the Authentication Method dialog box,Enter the username "hebcai.com" and the corresponding password.And click the "OK" button, after entering the password again,Click the "OK" button again.

(8) In the "Home Directory" tab of the "hebcai.com Properties" dialog box,Select "hebcai.com" for the application pool.

(9) Click the "OK" button to complete the setting of the web site

6. Select the local computer,For example, "web local computer", right-click and select "All Tasks" "Save configuration to disk", it will prompt that the save is successful.

After the above settings,The server can support asp.net vs 2008, and the security performance is greatly improved.

  • Previous Android development of four major components to achieve call interception and call recording
  • Next Implementation method of JavaScript simple traversal of all attributes of DOM object