Вы находитесь на странице: 1из 14

CNS Dept.

of E&TC Engineering

EXPERIMENT NO: 2b DATE: / /

AIM:- Installation and configuration of Web Server.

APPARATUS:- PCs, straight cables, switch

THEORY: -

The Hypertext Transfer Protocol (HTTP)

The Hypertext Transfer Protocol (HTTP) is a protocol used mainly to access data on the
World Wide Web. HTTP functions as a combination of FTP and SMTP. It is similar to FTP because it
transfers files and uses the services of TCP. However, it is much simpler than FTP because it uses
only one TCP connection. There is no separate control connection; only data are transferred between
the client and the server.

HTTP is like SMTP because the data transferred between the client and the server look like
SMTP messages. In addition, the format of the messages is controlled by MIME-like headers. Unlike
SMTP, the HTTP messages are not destined to be read by humans; they are read and interpreted by
the HTTP server and HTTP client (browser).

SMTP messages are stored and forwarded, but HTTP messages are delivered immediately.
The commands from the client to the server are embedded in a request message. The contents of the
requested file or other information are embedded in a response message. HTTP uses the services of
TCP on well-known port 80.

HTTP Transaction

Figure below illustrates the HTTP transaction between the client and server. Although HTTP
uses the services of TCP, HTTP itself is a stateless protocol. The client initializes the transaction by
sending a request message. The server replies by sending a response.

Messages

The formats of the request and response messages are similar; both are shown in Figure. A
request message consists of a request line, a header, and sometimes a body. A response message
consists of a status line, a header, and sometimes a body.
CNS Dept. of E&TC Engineering

Implementation of LAN :

1. Right click on My Network Places and click properties


2. Select ‘set up a home or small office network’ on the left corner
3. Click next
4. Click next
5. Select other
6. Select ‘This computer belongs to a network that does not have an internet
connection’ and click next
7. Enter the computer description and computer name and click next
8. Enter the workgroup name and click next
9. Select Turn on file and printer sharing and click next
10. Click next
11. Wait for sometime
12. Select ‘Just finish the wizard. I don’t want to run the wizard on other computer’ and
click next
13. Click finish
14. Click yes when asked to restart your computer
15. After restarting, again go to My Network Places
16. Click on ‘view workgroup computers’ on the left corner
17. All the workgroups can be seen here
CNS Dept. of E&TC Engineering

18. Go to Network Connections and right click on Local Area Network. Click on Properties

19. Click on Advanced


CNS Dept. of E&TC Engineering

20. Click on Settings

21. Select HTTP Server and click OK


CNS Dept. of E&TC Engineering

22. Go to Start menu and select Control Panel

23. Select Administrative Tools


CNS Dept. of E&TC Engineering

24. Select Internet Information Services

25. The Internet Information Services window is opened


CNS Dept. of E&TC Engineering

26. Right click on Web sites and select New Virtual Directory

27. Click next


CNS Dept. of E&TC Engineering

28. Type the alias and click next

29. Click on Browse to enter the path


CNS Dept. of E&TC Engineering

30. Select Local Disk(C:) in My Computer and click OK

31. Select Inetpub


CNS Dept. of E&TC Engineering

32. Select wwwroot and click OK

33. Click Next


CNS Dept. of E&TC Engineering

34. Select Run scripts and both Read and Write and click Next

35. Click on Finish


CNS Dept. of E&TC Engineering

36. Now the alias google has come on Default Web sites

37. Now right click on Default Web Sites and select Start
CNS Dept. of E&TC Engineering

38. The contents of folder ‘wwwroot’ in Inetpub folder

39. Now click on Internet Explorer icon


CNS Dept. of E&TC Engineering

40. Type ‘http://192.168.9.135/’ to view the contents of the PC having that IP address

41. The same document ‘client’ is present here in Internet Explorer window

CONCLUSION:- Thus we have installed Microsoft Internet Information Server (IIS5) and
configured Web server.

Вам также может понравиться