Web Server Setup –iis

Source: Internet
Author: User
Tags nntp

Functional RoleIIS is a world Wide Web server. Gopher server and FTP server are all contained inside. IIS means that you can publish Web pages and have ASP (Active Server Pages), JAVA, VBScript-generated pages with some extended functionality. IIS supports something interesting, such as an interface with an editing environment (FRONTPAGE), a full-text search (INDEX SERVER), and a multimedia-enabled (NET SHOW) Second, IIS is a Windows NT SERVER 4.0 files and application servers that are provided together are the basic components of establishing an Internet server on Windows NT Server. It is fully integrated with Windows NT Server, allowing the use of Windows NT Server built-in security and the NTFS file system to build a powerful and flexible internet/intranet site. IIS (Internet Information Server, Internet Information Service) is a Web (Web page) service component that includes Web servers, FTP servers, NNTP servers, and SMTP servers, respectively, for web browsing, file transfer, News services and email delivery make it easy to publish information on the Web, including the Internet and local area networks. Add and Run
    • IIS add to the Control Panel, select Add/Remove Programs → add/Remove Windows components, remove the small hooks (if any) before Internet Information Services (IIS), and then follow the prompts to complete the IIS component additions. The IIS components added in this way will include all four services, such as Web, FTP, NNTP, and SMTP.

Note that it is recommended to manually select the required application development features here! Better shut down the firewall

IIS run When IIS is added successfully, then go to control Panel → Administrative Tools →internet Service Manager (Internet Information Services) to open IIS Manager, and for services with the word "stopped", right-click on it and select "Start" to open.

Other browsers, open the http://localhost, the following interface appears, the building is successful

set up a Web server

First of all, if we hang the site on port 8080, we need to create a new site in the "site", the approximate operation is: Right-click "website", "Add Site", enter information, click "OK", where "site name" is filled in, "physical path" Select the directory path to put the site-related files, the remaining port to 8080 or other unoccupied ports, click OK, access to http://localhost:8080/or IP address to see their website,IIS site list

Add a Web site in IIS

How to add a virtual path

Second, we take a look at the way the virtual path is added, the so-called virtual path, is similar to http://www.xiyoumobile.com/admin/and other access methods, seemingly visited another folder in the site, actually visited another site, in IIS can choose " Add virtual directory "and" Add Application "two methods implemented, personally recommend the latter, because you do not have to consider the location of the. dll file because of creating a new virtual directory. Action: For the site to add the virtual directory, right-click Add Application, fill in the alias and path, you can enter the Web site in the browser to access the site, where "alias" please fill in the name of the virtual directory you want to access, such as http:// Www.xiyoumobile.com/admin/, the alias should be filled with "admin", and "path" in accordance with the method of new Web site can be filled,

Set Permissions

Windows NT System for security reasons, set up the user groups and Permissions division, especially in the ordinary desktop version or the family version of the system is more obvious, the server is often given the highest authority on the administrator, there are children shoes said, according to the above method, the completion of the server after the , the Web page can open, but will error, 500 or 401, and so on, basically because of the permissions, if 401 is what permissions are not, 500 is likely to write the local database, the file is forbidden to write the server error caused by, so, Please carefully check the permissions of the site directory for the children's shoes is enough.

How to check it, very simple, open IIS, select a Web site or virtual directory in the list on the left, and then, in the Action column on the right, select Edit permissions, security,

Here you can see that my Site Directory permissions include "Everyone", "Authenticated Users", "SYSTEM", "Administrators" and several other user groups or user names, and allow the "Everyone" user group to read and execute , listed and so on, so the site's script, content is to allow anyone to access or said to get, some children's shoes have not set permissions on the hard disk, there may be no everyone's this permission, it is possible to access the presence of 401 access is denied

In this case, you can add the Everyone or IIS_IUSRS access right in the "Security" (Site Directory folder) just now, and if you need a file upload, you can make a folder readable and writable, as long as you tick the required permissions.

set up Miscellaneous

First: Add default home Page / Document The default documents for IIS are the following: Default.htm, Default.asp, index.htm, index.html, iisstart.htm, Default.aspx (here is a note, because Windows system is not case-sensitive on the path, so the site published on IIS is also case-insensitive), if your home file is not in the above file, the document name is not lost, the default is inaccessible (I deliberately deleted the Default.aspx), so , for this scenario, set the default document yourself, as follows (suppose you want to hang a PHP site):

Two: NET Framework versions , especially in Windows 7, are supported by default only for. NET Framework 3.5, which can also be caused if the. NET Framework 4 and IIS are installed in different order. NET does not have an issue registering in IIS, so it is recommended that you run CMD as an administrator before you install the. NET Framework, or IIS first, and then enter X:windows\microsoft.net\framework\ v4.0.30319 (64-bit: X:windows\microsoft.net\framework64\v4.0.30319,x represents the system installation disk, such as C), and then executes the command aspnet_regiis.exe-i, which ensures that. NET4 is registered with Iis,iis in order to run normally. NET4 version of the program.

Furthermore, if the application development is selected. NET4, while the Web application chooses. NET2, too. Both of these belong to the running framework exception, must be configured correctly, otherwise it will be an error!

Second: Add MIME type If you need to have the Web site provide some new file access services, you must add some file suffix names and MIME types in IIS, especially IIS7, By default, there is no. mp4 format file support, if you do not add MIME type, HTML5 is not easy to implement, there are other files, such as APK, IPA and other installation packages, due to infrequently used, in IIS also need to manually add in, if not added, will be reported "404 Not Found" error not finished, pending finishing ...

Web Server Setup –iis

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.