Create IIS and access the webpage on my machine from a computer in the LAN

Source: Internet
Author: User
Tags ftp site nntp nntp server windows 5 file transfer protocol

How to Establish IIS and allow computers in the LAN to access webpages on my machine
Create a website using IIS that comes with Windows Server 2003/2000/XP
1. Install Internet Information Service
Microsoft Internet Information Service (IIS) is a web service integrated with Windows Server 2003/2000/XP. To install IIS, add optional components, or delete optional components (take 2003 as an example, 2000/XP is basically the same), follow these steps:
Click Start> Control Panel> and then click add or delete programs ". The "add or delete programs" tool starts --> click "Add/delete Windows Components ". The "Windows component wizard" is displayed ".
In the Windows component list, click "Web Application Server", click "details", and then click "Internet Information Service (IIS)". Click "details ", to view the list of optional IIS components.
Select the optional components to install. By default, the following components are selected:
FrontPage 2002 Server Extentions (available for server extensions such as counters)
Internet Printing (network printing service is not selected)
Internet Information Service Management Unit (required)
Internet Information Service Manager (required)
NNTP service (not selected for installing the NNTP server)
SMTP service (not selected for installing the email server)
Public file (required)
File Transfer Protocol (FTP) Service (optional for FTP site creation)
World Wide Web Service (required for WWW server creation)
Click "World Wide Web Service" and click details to view the list of optional IIS sub-components (such as the Active Server Pages component and remote management (HTML) tool. Select the child components you want to install. The Remote Desktop Web connection is optional. (Pc235.com Editor: Jianguo)
Click OK until "Windows component wizard" is returned ". Click Next to complete the "Windows component wizard ". A www server is created. The default home directory is C:/inetpub/wwwroot.
Note: If you are not familiar with the above content, you 'd better use the configuration server Wizard to add a WWW server. Method: click Start> Administrative Tools> Configure your server wizard> Add application server as prompted to create a website.
Ii. Basic Web site configuration
Click Start, point to administrative tools, and then click Internet Information Service (IIS) manager. Expand "XX local computer-website-default website", right-click "default website", where you can start or stop the website, and then click "properties ". (The attributes of "website" are different from those of "default website". Because multiple sub-websites can be created under a website, "default website" is only one of them, because some "website" attributes will overwrite the "default website" attributes), click "Apply" for each setting below. (Pc235.com Editor: Jianguo)
1. Directory Security
To configure anonymous authentication, follow these steps: In the "default website" attribute dialog box, click the "Directory Security" tab. Under authentication and access control, click Edit ". Click the enable Anonymous Access check box and select the note: the user account in the "user name" box is only used for anonymous access through the Windows Guest account. By default, the server creates and uses the account iusr_computername. The password of an anonymous user account is only used in windows. Anonymous users do not use the username or password to log on. Under authenticated access, click the integrated Windows Authentication check box to select it. Click "OK" twice.
2. Website Tab
Click the website tab. Enter the name of your website in the description, such as "Garden", and click "application", that is, "default website" is changed to "Garden". If you have allocated multiple IP addresses to your computer, in the IP address box, click the IP address you want to specify for the web site. If there is no fixed IP address, do not fill in; TCP port is 80; SSL port is 443; check before "protect HTTP Connection" to enable the website to start every time you start the computer.
3. Performance Tab
Click the performance tab to set the available network transfer bandwidth for the website. The settings here affect the memory, bandwidth usage, and Web connection quantity attributes. By configuring the network bandwidth of a specific site, you can better control the traffic of the site. For example, by limiting the bandwidth on a low-priority web site, you can relax the access limit on the site. Similarly, when you specify the number of connections to a Web site, you can release resources for other sites. The configuration is site-specific and should be adjusted based on network traffic and usage changes. Click the "Limit bandwidth available for this Web site" check box and select it. You can configure IIS to adjust the network bandwidth to the selected maximum bandwidth, in kilobytes per second (kb/s). Click the Web Service Connection check box and select a specific number or unlimited number of web service connections. Restrict connections to allow computer resources to be used by other processes. Note: Each client that browses a Web site usually uses about three connections.
4. Home Directory tab
Click the Home Directory tab. Set a directory to store the content of your site. If you want to use the web content stored on your local computer, click "directory on this computer" and enter the path you want in the local path box. For example, we recommend that you put the main Directory D:/mywww in a non-system zone for ease of management. The default path is C:/inetpub/wwwroot. Note: Do not create a web content folder in the root directory to increase security. If you want to use web content stored on another computer, click share location on another computer, and then type the desired location in the displayed network directory box. If you want to use the web content stored in another web address, click "redirect to URL" and enter the desired location in the "redirect to" box. Under "customer will send", click the check box to select it.
5. Document Tab
Select the document format used by your home page, and click the arrow keys on the side to arrange it to the first line to delete or add new types you don't need.
6. HTTP header Tab
Set the HTTP header to your domain name (My address is test.pc235.com). The header value is the port number 80. If you want to create multiple websites for multiple domain names, that is, fill in the website attributes separately.
3. Start and connect to the website
1. Click Start, point to administrative tools, and then click Internet Information Service (IIS) manager. Expand "XX local computer-website-default website", right-click "default website", and then click "properties ". You can start or stop the website here.
2. Save your website to the home directory.
3. disable the firewall in "local connection-property-advanced" and "Broadband connection-property-advanced", and open port 80 (enabled by default) used by the website in the firewall of anti-virus software ), if the above firewall is not disabled, the system will prompt that the connection fails when you open the webpage.
4. (In my opinion) deleting the virtual directories automatically created by the system under the default website can reduce the chance of prompting the user name and password when opening the webpage. that is, click Start, point to administrative tools, and then click Internet Information Service (IIS) manager. Expand -- xx local computer -- website -- default website -- delete all the following folders (these folders are virtual directories for website help and require permissions to access them ); you can right-click "default website" to create a virtual directory (for example, "chain") as needed, and set the main folder to another disk (for example, D:/Ad directory, this directory can be the home directory of the FTP site at the same time, and some software is put in this directory) This can partially replace the FTP site to enter "http: // download or store your domain name or IP address/software name. This makes it easy for users who cannot connect to the FTP site through port 21.
Enter
Http: // 127.0.0.1
Or http: // your domain name/
Or http: // your IP address/
To open the webpage.
4. Apply for a 1 yuan CN Domain Name
Apply for a passport registration on the internet, use the user name and password to enter, apply for a free Domain Name and activate the domain name, download and install the peanut shell 2.0, and enter the user name and password when registering the passport at the first startup of the peanut shell, in this way, it will contact the domain name resolution server to resolve your dynamic IP address to your domain name, as long as you enter "http: // your domain name/" to open the web page. For more information, see the domain technology community. Remember to delete the 3721 network real-name program which is incompatible with the peanut shell. In the firewall settings, allow the peanut shell to connect to the server 61.145.112.211, 61.145.112.210, or 61.145.112.212 port 5050 to receive and send packets. otherwise, the peanut shells work abnormally.
Use IIS to create a website in a LAN
Overview of IIS server Creation
IIS (Internet Information Server) is a web service component, including Web servers, FTP servers, NNTP servers, and SMTP servers, it is used for Webpage Browsing, file transmission, news services, and email sending. It makes it easy to publish information on the Internet (including the Internet and Local Area Network. This article describes how to configure and manage IIS 2000 in Windows 5.0 Advanced Server Edition.
Prepare to add and run IIS
1. Add IIS
Go to "Control Panel", select "Add/delete Programs> Add/delete Windows components", and remove the hooks before "Internet Information Service (IIS)" (if any ), after the check box is selected, follow the prompts to add the IIS component. The IIS component added in this way includes all four services, including web, FTP, nntp, and SMTP.
Ii. IIS running
After IIS is successfully added, Go to Start> program> Management Tools> Internet Service Manager to open the IIS manager. For services with the words "STOPPED, right-click them and select "start" to enable them.
Article 1 IIS Web Server
1. Create the first web site
For example, if the IP address of the local machine is 192.168.0.1 and your webpage is stored in the D:/wyvisual directory, the first page of the webpage is named index.htm. Now I want to establish my own Web server based on these.
For this web site, we can use the existing "Default web site" to make the corresponding changes, you can easily implement. Right-click the "Default web site" and select "properties" to go to the "Default web site properties" setting page.
1. Modify the bound IP Address: Go to the "web site" window, and then select the desired local IP Address "192.168.0.1" from the "ip address" drop-down menu ".
2. modify the main directory: Go to the "main directory" window, and enter the "D:/WY" Directory of Your webpage in the "local path" (or click "Browse.
3. Add the homepage file name: success ".
4. add a virtual directory. For example, if your home directory is under "D:/WY" and you want to enter the format of "192.168.0.1/test", you can call up "E: in/All, the "test" is the virtual directory. Right-click "Default web site", select "New> virtual directory", enter "test" in "alias", and enter "E: /All.
5. test the effect: Open IE, enter "192.168.0.1" in the address bar, and then press the Enter key to bring up the homepage of Your webpage. This indicates that the setting is successful!
2. Add more websites
1. multiple IP addresses correspond to multiple web sites. If you want to use different IP addresses to obtain different web pages, you only need to right-click the default web site, select "New> site", and enter any content (for example, "my second web site") in the "Description" field as prompted ") in the drop-down menu of "Enter the IP address used by the web site", select the IP address to bind to it. After the web site is created, set the IP address in the previous step.
2. one IP address corresponds to multiple web sites. After all the web sites are created in the previous step, you can set different port numbers for web sites as virtual hosts, for example, set a Web site to 80, a site to 81, and a site to 82 ......, For websites whose port number is 80, the ACCESS format is still the IP address. For websites bound to other port numbers, the corresponding port number must be added to the IP address, that is, the format of "http: // 192.168.0.1: 81" is used.
Obviously, it is more difficult to use it after the port number is changed. If you have mapped all the domain names you need to this unique IP address on the DNS server, you can set different "host headers, this allows you to directly use a domain name to access different web sites.
For example, if you only have one IP address 192.168.0.1 on your local machine, you have already created (or set) two web sites, one is "Default web site" and the other is "My second web site ", now you want to enter "www.enanshan.com" to directly access the former, and enter "www.popunet.com" to directly access the latter. The procedure is as follows:
Make sure that the two domain names have been mapped to the IP address on the DNS server first, and make sure that the port numbers of all web sites are kept as the default value of 80.
Select "Default web site> right-click> Properties> Web site", and click "advanced" on the right of "ip address, double-click the existing IP address under "this site has multiple identifiers" (or click it and then click "edit ), enter "www.enanshan.com" under "Host header name" and then press "OK" to save and exit.
Then, set the new host header "www.popunet.com" for "My second web site" in the same way as in the previous step.
Finally, open your IE browser and enter different URLs in the address bar to bring up the content of different web sites.
3. Multiple Domain Names correspond to the same web site
You only need to bind an IP address to the web site, and then map all the domain names in the DNS server to your IP address. Then, enter any domain name in the browser, you can directly obtain the content of the website you have set.
Iii. Remote Management of IIS services
1. Right-click "manage Web sites", select "properties", go to the "Web sites" window, and select "ip address ".
2. go to the "Directory Security" window and click "edit" under "IP address and domain name restriction, click "authorize access" to allow the client to manage IIS from a place outside the local machine. Then, click "OK.
3. enter the format of "http: // 192.168.0.1: 3598" (3598 is the port number) in the browser of any computer. A password inquiry window appears, after entering the Administrator account name (Administrator) and password, you can log on successfully. Now you can remotely manage IIS in your browser! The management scope mainly includes creating, modifying, starting, stopping, and deleting websites and FTP sites.
4. FAQs in this section
Q: What does this mean when "http: //" or "no" is added to the URLs mentioned above?
A: If "http: //" is not added, it indicates that it can be added or not. If "http: //" is added, it indicates that it is indispensable, URLs with port numbers must be added; otherwise, URLs with port numbers can be omitted.
Q: Can I replace the IP addresses mentioned above with a "friendly" name?
A: Yes! In addition to using the computer name of the IIS server, you can also create a ing table for the domain name and corresponding IP address on the DNS server to access the domain name.
Q: I have set up a Web server, but a password prompt window appears when I access the webpage. Why?
A: The password prompt window appears when you access the web site. Generally, check the password one by one for the following reasons:
1. The accessed webpage file is encrypted. For example, the "iisstart. asp" homepage file under "E:/inetpub/wwwroot" in the original home directory of "Default web site" requires a password.
2. if anonymous access is not allowed or the modification is not necessary, you must first check the "Anonymous Access" option; in addition, in "edit", "Anonymous User Account", "User Name" should be in the format of "iusr_nodisk" (where "nodisk" is the computer name). In addition, you must also check "allow IIS to control passwords.
3. Your target directory has limited access permissions. This option is only available when the directory is in an NTFS format partition. Right-click it, select "properties", and enter the "Security" window to check whether the list shows the status that allows the "everyone" group to be fully controlled by default. If not, please change it back.
Article 2 FTP server in IIS
1. Create an FTP site
For how to set up the first FTP site ("Default FTP site") and how to create more FTP sites, refer to the previous operations on the Web server. Note that if you want to use an IP address to correspond to multiple different FTP servers, you can only use different port numbers instead of "Host header name.
For an established FTP server, access via a browser will be in the format of "ftp: // 192.168.0.1" or "ftp: // 192.168.0.1: 22 "; in addition to anonymous users (anonymous, FTP in IIS uses the user library that comes with Windows 2000 (you can find "user" in "Start> program> Management Tools> Computer Management" to manage the user library ).
Ii. FAQs in this section
Q: How do I modify the system prompt information when the FTP server is successfully logged on or exited?
A: Right-click the FTP site, select "properties", go to the "message" window, and enter the welcome information after successful logon in the "welcome" area, in "exit", enter the user's farewell message when exiting.
Q: Why can't ordinary users log on to the FTP server except the Administrator and anonymous user (anonymous) after the FTP server is created successfully; it can be used normally on other computers. Why?
A: By default, normal users do not have the permission to log on to the local machine. To modify the policy, go to "Start> program> Management Tools> Local Security Policy" and select "Left frame> Local Policy> User Privilege assignment ", double-click "Log on locally" in the frame on the right, and add the common users to the list.
Article 3 SMTP server in IIS
If you suspect that free mails sent over the Internet are too slow, you may consider using IIS to create a local SMTP server. Whether you are directly connected to the Internet or through a LAN, whether you have a static IP address or a dynamic IP address, you can easily establish it.
The method to create an SMTP server under IIS is very simple. You only need to make the "Default SMTP virtual server" in the IIS manager in the started State. In addition, you generally do not need to make any other settings.
If you want to use your SMTP server to send mail, you only need to fill in "localhost" in "SMTP" in your e-mail client settings ", it works normally no matter how your IP address changes.
When you use your SMTP server to send e-mail, it is not only not subject to human freedom, but also lightning speed, which is the best choice for individual SMTP servers.

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.