Next Previous Contents

3. Testing HTTPd

After you have installed HTTPd, login as root and start it by typing httpd & . (assuming you have installed as standalone) You should now be able to see it in the list generated by ps. The simplest way to test HTTPd is by Telnet. At the Linux command prompt type


   linux:~$  telnet 172.16.0.1 80
where 80 is the default port for HTTP. If you have configured "Port" as something different then type that number instead. You should get a response which looks like this

   Trying 172.16.0.1...
   Connected to linux.mydomain.
   Escape character is '^]'.
Now if you type in any character and press Enter you should get a response similar to the one shown below.

   HTTP/1.0 400 Bad Request
   Date: Wed, 10 Jan 1996 10:24:37 GMT
   Server: NCSA/1.5
   Content-type: text/html

   <HEAD><TITLE>400 Bad Request < /TITLE> < /HEAD>
   <BODY><H1>400 Bad Request < /H1>
   Your client sent a query that this server could
   not understand.<P>
   Reason: Invalid or unsupported method.<P>
   < /BODY>

Now we are ready to connect to this server using another PC and a WWW Browser.


Next Previous Contents