Easy Web Server Creation

Source: Internet
Author: User


"I want to have a home, a place that doesn't need to be gorgeous ......", Do you feel more deeply about this song if you want to build a home network? After installing broadband, we can make our computer a web server and feel the online luxury houses that have dozens of GB space, including CGI, PHP, and ASP. Don't worry about hot porridge. First of all, let's take a brief look at the basic knowledge about Web Services.
Basics

Web servers: servers in the network that build basic platforms for information publishing, data query, data processing, and many other applications.

How the Web server works: in web page processing, there are generally three steps. Step 1: the Web browser sends a Web page request to a specific server. Step 2, after receiving a Web page request, the web server looks for the requested web page and sends the requested web page to the web browser. Step 3, the Web server receives the requested web page and displays it in principle 1.

HTTP: The full name is hypertext transfer protocol, that is, Hypertext Transfer Protocol, used to transmit web pages and other content.

HTML: hypertext markup language (Hypertext Markup Language) is the standard language used to create Web documents.
Implementation
In Windows 2000, you only need to add IIS (Internet Information Server, a component that comes with the operating system) to easily implement web services.

On Windows 2000 Server, if IIS is not added, click Start, point to settings, click control panel, and double-click Add/Delete.Program", Select" add or delete Windows components ", and select" Internet Information Service (IIS) "under" components "in the" Windows component wizard "window )". Then, enter the system source disk and click "Next". The "Windows component wizard" window is displayed, and click "finish.

Tips for debugging: Check whether the Web server has been configured and tested on your computer. Right-click the "Network neighbors" icon on the desktop, select "properties", right-click the "local connection" icon, and select "properties ", select "Internet protocol TCP/IP" in the connection component ". Click the "properties" button to go to The Properties window and check "Use the following IP Address". For example, set the IP address to "192.168.0.1" and the subnet mask to "255.255.255.0 ", after confirming, enter "http: // 192.168.0.1" in the browser. If you can see the webpage after you press enter, the web server has been set up successfully.

Advanced

If the Web Service is used at this time, there are not many functions, but it is not safe, so you must set it up first. Click Start → program → Administrative Tools → Internet service manager. In the left pane of Internet Information Service, expand the "+" before the server name, right-click the "Default web site" option and select "properties" from the pop-up menu ". The following describes some specific settings:

1. IP Address Settings

To make it easy for others to access your webpage, you must first set an IP address and click the "web site" tab in "Default web site properties, you can enter the IP address (2 ). At present, there are a lot of friends installing broadband networks, but there are still few fixed IP addresses, so we can also use the default "all unallocated" here ". However, if you want more users to browse your website, there is also a better way to convert our dynamic IP address to a fixed domain name for access. There are many methods, such as using dns2go and dynamichost.

TCP port: When the default value is "80", you only need to enter your domain name in a browser, such as www.2to1.d2g.com, to access the site, if you change the TCP port to another port number, such as "1200", you must enter "Domain Name + port number" in the browser address when accessing the site, such as "www.2to1.d2g.com: 1200 ".
SSL port: if we are worried about Interception during information transmission, we can use SSL encryption. For example, we need to specify the port used for encryption, click the "advanced" button after "ip address", and then modify the port number in "SSL port". The default value of this port is "443". After modification, when you browse our webpage, you also need to know the port number. Otherwise, you cannot connect to the server. The access method is also "Domain Name + port number ".

2. Modify the home directory and Access Permissions

Where the webpage is stored on the hard disk, you can set it as needed. Note that there are some access control settings in the "local path". The following is a brief introduction:

Script Resource Access: If you have set the "read" or "write" permission for user accessSource code(ResourceCodeIncluding scripts in ASP applications). Select this option.

Read: If you want to allow others to access your webpage, you should select it, which allows users to read or download files (directories) and their related properties.

Write: If you are allowed to upload or change the content of a writable file, check this option.

Directory browsing: If you are allowed to view the hypertext list of files and subdirectories in the virtual directory, check this option. For security reasons, do not select directory browsing.

3. Set the default document

For example, if default.htm.pdf or “index.htm is entered, what about the web pages? In fact, this is the default document set in each server. The single-click Text folder label allows you to set a specific webpage, for example, an index index.htm ".

How is the Implementation of Online homes not complicated? after such a setup, your mansion is also decorated almost. Please settle in quickly. (Source: China Computer Education News)

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.