apache and server side includes (fwd)

Ho'ala Greevy hoala at secretbonus.com
Tue Jan 22 15:07:28 PST 2002


this from a friend i used to work with at Critical Path in SF (he works
for an apache consulting firm now).  

turns out it was a stupid copy/paste error, as some '<' characters got
pasted into index.shtml as '<'

for example, <html> was showing up as <html>

thought you folks would be interested in seeing his troubleshooting
techniques.

-ho'ala

---------- Forwarded message ----------
Date: Tue, 22 Jan 2002 13:59:16 -0800
From: john sachs <jsachs at covalent.net>
To: Ho'ala Greevy <hoala at secretbonus.com>
Subject: Re: [luau] apache and server side includes (fwd)

talking directly to the webserver is a good way to debug stuff.  because
sometimes browsers are doing wacky things you cant see.  here's what i
did:

[john at doom:~] telnet leroy.secretbonus.com 80
Trying 63.193.249.148...
Connected to leroy.secretbonus.com.
Escape character is '^]'.
GET / HTTP/1.0
Host: leroy.secretbonus.com

HTTP/1.1 200 OK
Date: Tue, 22 Jan 2002 22:11:37 GMT
Server: Apache/1.3.12 (Unix)
Connection: close
Content-Type: text/html

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
blah blah blah...


so if you just construct a request by hand and send it in to the server,
you will get the server output.  just telnet to the port apache is
listening on and here is a simple request

GET / HTTP/1.0<enter>
Host: localhost<enter>
<enter>

when you hit that last enter on the blank line, the server will give you
the response headers and the content.  pretty cool.. -j



More information about the LUAU mailing list