Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Patch for cvs sunet server.scm

1 view
Skip to first unread message

Humberto Ortiz-Zuazaga

unread,
Mar 27, 2002, 12:01:08 AM3/27/02
to
I had to make some changes to server.scm in the CVS sunet I downloaded
to work with scsh-0.6.1. The way options are specified to the httpd
function has changed:

--- sunet/server.scm Mon Oct 8 13:37:30 2001
+++ sunet-hoz/server.scm Tue Mar 26 23:08:14 2002
@@ -12,6 +12,7 @@

(define-structure http-top (export top)
(open httpd-core
+ httpd-make-options
cgi-server
httpd-basic-handlers
seval-handler
@@ -41,4 +42,12 @@
(set-gid -2) ; Should be (set-uid (->uid "nobody"))
(set-uid -2))) ; but NeXTSTEP loses.
(initialise-request-invariant-cgi-env)
- (httpd ph 8001 "/zu/shivers"))))
+ (httpd (with-path-handler
+ ph
+ (with-port
+ 8001
+ (with-root-directory
+ "/usr/local/etc/httpd/htdocs"
+ (with-syslog? #t))))))))
+
+


--
Humberto Ortiz Zuazaga
Programmer-Archaeologist
High Performance Computing facility
University of Puerto Rico
http://www.hpcf.upr.edu/~humberto/

Michal Maruška

unread,
Apr 2, 2002, 2:51:35 AM4/2/02
to

Humberto Ortiz-Zuazaga <humb...@hpcf.upr.edu> writes:

> I had to make some changes to server.scm in the CVS sunet I downloaded
> to work with scsh-0.6.1. The way options are specified to the httpd
> function has changed:

Thanks, it helped me.
I have got another change, but i still cannot exec CGIs.

i had to define in httpd-core.scm
(define *http-log?* #t)

But i don't understand it's meaning... yet.


BTW: is there a special mailing list for sunet?

Michael Sperber [Mr. Preprocessor]

unread,
Apr 2, 2002, 4:56:31 AM4/2/02
to Michal Maru¹ka
>>>>> "Michal" == Michal Maruška <m...@maruska.dyndns.org> writes:

Michal> Humberto Ortiz-Zuazaga <humb...@hpcf.upr.edu> writes:

>> I had to make some changes to server.scm in the CVS sunet I downloaded
>> to work with scsh-0.6.1. The way options are specified to the httpd
>> function has changed:

Michal> Thanks, it helped me.
Michal> I have got another change, but i still cannot exec CGIs.

CGIs are very, very broken currently due to the interaction between
threads and fork.

Michal> i had to define in httpd-core.scm
Michal> (define *http-log?* #t)

Michal> But i don't understand it's meaning... yet.

That's going away VSN.

Michal> BTW: is there a special mailing list for sunet?

There's sunet-devel on SourceForge.

--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla

0 new messages