[plt-scheme] web server behind apache

From: Corey Sweeney (corey.sweeney at gmail.com)
Date: Fri Nov 4 18:20:53 EST 2005

If anyone cares, a better solution to this is:

{in your apache httpd.conf file}

ExtFilterDefine plt mode=output cmd="/usr/bin/sed
's/\\/servlets;/\\/plt-ws\\/servlets;/'"

<Directory "/var/www/localhost/htdocs/plt-ws/">
Options Indexes MultiViews FollowSymLinks SymLinksIfOwnerMatch
AllowOverride None
Order allow,deny
Allow from all

SetOutputFilter plt
RewriteEngine On
RewriteRule ^(.*)$ http://localhost:8080/$1 [P]
</Directory>


It allows just one directory to be served by the plt web-server. Obviously
filters could be written for other directories, and a more comprehensive sed
script could be written.


Corey

On 11/4/05, Corey Sweeney <corey.sweeney at gmail.com> wrote:
>
> I changed apache from proxying the plt-ws directory, to proxying
> everything starting at the root directopry, and the add.ss demo works
> great now with https.
>
> Thanks
>
> Corey
>
> On 11/4/05, Anton van Straaten <anton at appsolutions.com> wrote:
> >
> > Corey Sweeney wrote:
> > > Then I try manually going to
> > >
> > > https://localhost/plt-ws/servlets;id18*0*19261510/examples/add.ss, and
> > I
> > > get the less expected error:
> > >
> > > Error 500
> > >
> > > The servlet terminated abnormally.
> > > Please ask the author to fix the problem based on the details in the
> > > Web server's log file.
> > >
> > > Powered by PLT
> > >
> > >
> > > and the webserver puts on stdout:
> > >
> > > Servlet exception:
> > > extract-binding/single: number not found in ()
> > >
> > >
> > > Anyone know what's happening here?
> >
> > The add.ss servlet generates HTML which uses an HTTP POST request to
> > submit the numbers to the servlet. If you navigate to that URL directly
> > using your browser, the associated form info isn't available.
> >
> > Anton
> >
> >
>
>
> --
> ((lambda (y) (y y)) (lambda (y) (y y)))
>



--
((lambda (y) (y y)) (lambda (y) (y y)))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20051104/4f8af782/attachment.html>

Posted on the users mailing list.