old-www/HOWTO/archived/WWW-HOWTO/WWW-HOWTO-11.html

57 lines
1.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Linux WWW HOWTO : Testing HTTPd</TITLE>
<LINK HREF="WWW-HOWTO-12.html" REL=next>
<LINK HREF="WWW-HOWTO-10.html" REL=previous>
<LINK HREF="WWW-HOWTO.html#toc11" REL=contents>
</HEAD>
<BODY>
<A HREF="WWW-HOWTO-12.html">Next</A>
<A HREF="WWW-HOWTO-10.html">Previous</A>
<A HREF="WWW-HOWTO.html#toc11">Contents</A>
<HR>
<H2><A NAME="s11">11. Testing HTTPd</A></H2>
<P>After you have installed HTTPd, login as root and start it by typing <B>httpd &amp; </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 &quot;Port&quot; 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
&lt;HEAD>&lt;TITLE>400 Bad Request &lt; /TITLE> &lt; /HEAD>
&lt;BODY>&lt;H1>400 Bad Request &lt; /H1>
Your client sent a query that this server could
not understand.&lt;P>
Reason: Invalid or unsupported method.&lt;P>
&lt; /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="WWW-HOWTO-12.html">Next</A>
<A HREF="WWW-HOWTO-10.html">Previous</A>
<A HREF="WWW-HOWTO.html#toc11">Contents</A>
</BODY>
</HTML>