9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: john@csplan9.rit.edu
To: 9fans@9fans.net
Subject: Re: [9fans] web server
Date: Sat, 18 Apr 2009 20:59:14 -0400	[thread overview]
Message-ID: <a48274b8f963f79c5773738b5b6d0740@csplan9.rit.edu> (raw)
In-Reply-To: <5d375e920904181600v57dbb0d8s83101a610daf336c@mail.gmail.com>

>> So, how hard is it to get werc running on real Plan 9? The readme was
>> for Plan 9 Ports last time I checked.
>
> Shouldn't be hard, aside from a couple of paths that might need fixing
> (perhaps using bind(1) will do), it should run out of the box.
>
> The only issue is that it expects to run as a CGI, so you will need to
> either use pegasus or some adapter for the standard httpd, there is a
> fancy one in russ' contrib dir, but a shell script that sets the two
> or three CGI vars werc uses should probably be enough, and I think
> somebody did just that.
>
> Hopefully somebody will write a more detailed howto, patches and docs welcome ;)
>
> Peace
>
> uriel

Ok, so I'm probably being really dumb here, but I'm trying to get CGI
to work and not quite sure what I need to do.

I stuck cgi.c in the httpd source directory, compiled and installed; now
I have /bin/ip/httpd/cgi. I created /bin/ip/httpd/cgi-bin and stuck a
rc script ("foo") in there that says "Hello world". Now, from my probably flawed
reading of the cgi source, I thought I'd just do:
http://myserver/magic/cgi/foo
to run my script 'foo'.  However...  nothing.  Don't even get an
error, just a blank page.  Am I missing something?  This intersects a
few areas that I don't know much about--the Plan 9 httpd server, and
how cgi stuff works in general.


John Floren




  reply	other threads:[~2009-04-19  0:59 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16 16:10 Rudolf Sykora
2009-04-16 16:16 ` erik quanstrom
2009-04-18 17:19   ` Enrico Weigelt
2009-04-26 21:43     ` Roman V. Shaposhnik
2009-04-16 16:18 ` Devon H. O'Dell
2009-04-16 16:22   ` Rudolf Sykora
2009-04-16 16:26     ` erik quanstrom
2009-04-16 17:22       ` [9fans] Rails? (was Re: web server) Pietro Gagliardi
2009-04-16 17:41         ` hiro
2009-04-16 17:50           ` Devon H. O'Dell
2009-04-16 18:19             ` Pietro Gagliardi
2009-04-16 18:51             ` erik quanstrom
2009-04-17 19:46               ` Tom Lieber
2009-04-16 17:58         ` Jack Johnson
2009-04-17 11:54     ` [9fans] web server maht
2009-04-17 12:02       ` Rudolf Sykora
2009-04-26 21:59       ` Roman V. Shaposhnik
2009-04-27 11:16         ` Uriel
2009-04-27 17:35         ` maht
2009-04-27 17:53           ` erik quanstrom
2009-04-28 18:36             ` maht
2009-04-17 12:31   ` Uriel
2009-04-17 12:45     ` Rudolf Sykora
2009-04-17 12:51       ` Devon H. O'Dell
2009-04-17 13:53       ` maht
2009-04-17 14:07         ` Rudolf Sykora
2009-04-18 22:16       ` Uriel
2009-04-18 22:31         ` john
2009-04-18 23:00           ` Uriel
2009-04-19  0:59             ` john [this message]
2009-04-19  6:57               ` Steve Simon
2009-04-19 11:52                 ` erik quanstrom
2009-04-19 13:10                   ` john
2009-04-19 13:38                     ` erik quanstrom
2009-04-19 16:02                     ` Skip Tavakkolian
2009-04-19 17:05                       ` erik quanstrom
2009-04-19 22:02                         ` Federico G. Benavento
2009-04-19 23:21                           ` erik quanstrom
2009-04-20  0:05                             ` Federico G. Benavento
2009-04-20  1:42                             ` Skip Tavakkolian
2009-04-20  2:04                               ` erik quanstrom
2009-04-20 16:17                           ` maht
2009-04-17 13:22     ` erik quanstrom
2009-04-18 22:13       ` Uriel
2009-04-18 22:27         ` erik quanstrom
2009-04-18 22:56           ` Uriel
2009-04-19  0:45             ` erik quanstrom
2009-04-26 22:08         ` Roman V. Shaposhnik
2009-04-26 22:34           ` hiro
2009-04-27 12:03           ` erik quanstrom
  -- strict thread matches above, loose matches on Subject: below --
2000-12-18 12:08 [9fans] Web Server forsyth
2000-12-18 10:02 thedesertfox95

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a48274b8f963f79c5773738b5b6d0740@csplan9.rit.edu \
    --to=john@csplan9.rit.edu \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).