Next Previous Contents

3. Dokimh toy HTTPd

Afou exete egkatasthsei ton HTTPd, mpeite san root kai jekinhste ton, plhktrologwntas httpd & . (Ypo8etontas oti ton egkatasthsate san standalone) 8a prepei na mporeite pleon na ton deite sth lista poy prokuptei apo thn entolh ps. O aplousteros tropos gia na dokimasete ton HTTPd einai me Telnet. Sth grammh entolwn toy Linux plhktrologhste

   linux:~$  telnet 172.16.0.1 80
opoy 80 einai h proka8orismenh 8ura (port) gia to HTTP. An exete ry8misei to "Port" se kati diaforetiko, tote plhktrologhste ayto to noumero. 8a prepei na parete mia apanthsh, paromoia me thn akoloy8h
   Trying 172.16.0.1...
   Connected to linux.mydomain.
   Escape character is '^]'.
Twra, an plhktrologhsete opoiondhpote xarakthra kai pathsete to Enter, 8a prepei na parete mia apanthsh san ki aythn poy akoloy8ei:
   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>

Twra eimaste etoimoi na synde8oume me ayton ton server xrhsimopoiwntas kapoio allo PC kai enan WWW Browser.


Next Previous Contents