<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>The Linux Intranet Server HOWTO: Testing HTTPd</TITLE> <LINK HREF="Intranet-Server-HOWTO-4.html" REL=next> <LINK HREF="Intranet-Server-HOWTO-2.html" REL=previous> <LINK HREF="Intranet-Server-HOWTO.html#toc3" REL=contents> </HEAD> <BODY> <A HREF="Intranet-Server-HOWTO-4.html">Next</A> <A HREF="Intranet-Server-HOWTO-2.html">Previous</A> <A HREF="Intranet-Server-HOWTO.html#toc3">Contents</A> <HR> <H2><A NAME="s3">3. Testing HTTPd</A></H2> <P>After you have installed HTTPd, login as root and start it by typing <B>httpd & </B>. (assuming you have installed as standalone) You should now be able to see it in the list generated by <B>ps</B>. The simplest way to test HTTPd is by Telnet. At the Linux command prompt type <BLOCKQUOTE><CODE> <PRE> linux:~$ telnet 172.16.0.1 80 </PRE> </CODE></BLOCKQUOTE> 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 <BLOCKQUOTE><CODE> <PRE> Trying 172.16.0.1... Connected to linux.mydomain. Escape character is '^]'. </PRE> </CODE></BLOCKQUOTE> Now if you type in any character and press Enter you should get a response similar to the one shown below. <BLOCKQUOTE><CODE> <PRE> 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> </PRE> </CODE></BLOCKQUOTE> <P>Now we are ready to connect to this server using another PC and a WWW Browser. <P> <HR> <A HREF="Intranet-Server-HOWTO-4.html">Next</A> <A HREF="Intranet-Server-HOWTO-2.html">Previous</A> <A HREF="Intranet-Server-HOWTO.html#toc3">Contents</A> </BODY> </HTML>