1, install IIS
IIS is the abbreviation of Internet Information Server, Internet Information Service, is a kind of web service, mainly including WWW server, FTP server and so on. It makes it easy to publish information on an intranet (local area network) or on the Internet (Internet). You can use IIS to establish the most common HTTP Web server, FTP file Transfer server, and SMTP mail server on your computer host for basic Web browsing, file transfer, and e-mail functionality.
(1) Win7 installation
(2) configuration
Double-click the Internet Information Services (IIS) Manager shortcut, double-click the Web site of the tree window on the left to see the default site items
Select "Default Web Site" To set, right click, select the Menu bar's properties options
- Web site: Setting external access properties for a Web site
- Description: Site Point Name
- IP Address: The default is "All Unassigned", for the local test site, access to the site's domain name with "localhost" instead. If the site is accessed externally, click the drop-down menu to the right of the IP Address option and select the appropriate IP address for external access (obtained from the network card settings)
- Port: Refers to the network port used to access the site, the default is 80, non-special cases do not need to set
- Home directory: By default, the content source when connecting to a resource option selects directory on this computer, which means that the site resource is stored on this machine. The Local Path option sets the location of the site directory on your computer.
- Document: The Web page file in the list box is the default home page, which is the homepage that is automatically positioned when the site is accessed by a domain name or IP address.
2. How Web pages work
Static HTML workflow: Static HTML Web pages files and other resources are stored on the Web server, and the root directory can be viewed as an organized web site. When the browser side in the Address bar to enter the site's domain name or URL, the browser side of the request is sent to the Web server Iis,iis call the corresponding Web page and resources sent back to the browser side, the browser to the server sent back the HTML code to parse, display the full page in the browser.
3. Set access paths in Web technology
The complete page is organized by the Web page file external resources, the HTML code through the path to find the resource location, the Web page and the mutual access to the page is also through the path location.
The path is divided into absolute and relative paths.
The absolute path is the URL.
Relative path reference is divided into relative site root directory (similar to absolute path, omit HTTP protocol and domain name part) and relative document (referring to the document referencing that path), often used to locate a Web page or resource under the same site.
Web Development--02 (development environment configuration)