How to create an ASP. NET site and an ASP. NET site

Source: Internet
Author: User
Tags ftp site website ip

How to create an ASP. NET site and an ASP. NET site

In fact, the establishment of ASP. NET Site small series is also confused at the beginning, after the online search for information to sort out, below to share with you.

1. Create site-specific users (create two site-specific users, hebcai.com belongs to the Guests group, and hebcai.com _ wpg belongs to IIS_WPG (ASP. NET-specific users ).

(1) Right-click "my computer" and choose "manage" from the shortcut menu to open "Computer Management". Select "user" from "group of local users ", select "new user" from the right-click menu in the List window on the right ". Create a username named "hebcai.com" and set a complex password for it. Select "user cannot change password" and "Password Never Expires" and click "OK.

(2) create a "hebcai.com _ wpg" user using the same method.

(3) Right-click "hebcai.com" and select the "attribute" command. On the "affiliated" tab, click "delete" on the default "Users ". Click the Add button. In the select group dialog box, enter guests in enter object name to select, and click OK.

(4) Right-click "hebcai.com _ wpg" and select the "attribute" command. On the "affiliated" tab, click "delete" on the default "Users. Click Add. In the select group dialog box, enter IIS_WPG in enter object name to select, and click OK.

2. Set site-specific folder Properties

(1) create a dedicated site folder D: web \ hebcai.com.

(2) Select the "properties" command from 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 "OK.

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

(5) set the attributes of the "hebcai.com _ wpg" user in the same way.

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

3. Create an FTP site to isolate users and create an exclusive virtual directory for hebcai.com.

(1) Right-click "FTP site" and select "new-FTP". The welcome page is displayed. Click "Next" to continue.

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

(3) set the IP address and port number. For example, if the IP address is 192.168.5.254 and the port number is 21, click "Next" to continue.

(4) Select an isolated user and click "Next" to continue.

(5) Select the FTP master path D: \ Web and click "Next" to continue.

(6) set FTP permissions, select "read" and "write", and click "Next" to continue.

(7) Click "finish" to create an FTP site. Select "new" and "virtual directory" from the right-click menu and follow the Wizard to set the directory.

You must check "read" and "write" in "virtual directory access permission.

4. Create a dedicated application pool for the site

(1) Right-click application pool and choose "New-application pool" from the shortcut menu ".

(2) In the "Add new application pool" dialog box, enter the application pool ID "hebcai.com" and click "OK.

(3) Right-click the application pool "hebcai.com" and select "properties ".

(4) In the "hebcai.com properties" dialog box, select the "ID" tab, select "configuration", enter the username "hebcai.com _ wpg" and the password, and click "OK. After entering the password again, click OK again.

5. Create a Web site

(1) Right-click the "website" and choose "New-Website". The welcome page is displayed. Click "Next" to continue.

(2) site description: hebcai.com. Click "Next" to continue.

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

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

(5) For Website access permissions, check "read and run scripts such as ASP" and click "Next" to continue.

(6) Click "finish" to create a site.

(7) Right-click the website "hebcai.com", select the "attribute" command, and click the "edit" button on the "Directory Security" tab. In the "authentication method" dialog box, enter the username "hebcai.com" and the corresponding password, click "OK", enter the password again, and click "OK" again.

(8) On the "home directory" tab of the "hebcai.com properties" dialog box, select "hebcai.com" for the application pool ".

(9) Click "OK" to complete Web site settings

6. Select a local computer, for example, "Web local computer", right-click all tasks and choose Save configuration to disk. A message is displayed, indicating that the configuration is successfully saved.

After the above settings, the server can support ASP. NET of VS 2008, and the security performance is greatly improved.

The above shows you how to create an ASP. NET site. I hope it will be helpful for you to learn.

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.