[racket] Deploying racket webserver on VPS host

From: John Clements (clements at brinckerhoff.org)
Date: Mon Jul 1 13:36:28 EDT 2013

On Jun 30, 2013, at 2:25 PM, Jay McCarthy wrote:

> Can you be more specific?
> If you have a Web app that locally works... just put that file and
> Racket on your server and run it. If it listens on the right port,
> then you have a public Web app?

Like Jay, I would encourage you to be more specific.  I can suggest two things that might be tripping you up, though:

1) the racket web-server is a complete web-server, and you don't need to run apache2 as part of a racket web-server solution. You might choose to add apache to do load-balancing or congestion-management or <insert complex web-serving topic here>, but you don't need it, and I would strongly encourage you to get things working *without* apache first. Just to be totally clear about this, it's entirely possible to get a running web-server, visible to the whole world, without apache installed on your VPS at all.

2) Another common problem in deploying a racket web-service is that by default, the serve/servlet function is set to allow connections only from the local machine ( In order to allow other machines to access your web-server, you'll want to set #:listen-ip to 'false', I believe.

I think there's a pretty good troubleshooting FAQ located in the web-server documentation, as well.

John Clements
> Jay
> On Sat, Jun 29, 2013 at 7:23 AM, Robert Herman <rpjherman at gmail.com> wrote:
>> I am new to racket, and I have been reading through the docs about the web
>> server, but I am a bit confused. I would like to use the racket web server
>> so that I can use racket for everything in a creating a web app strictly for
>> learning racket. I can get the examples running locally, but I am not sure
>> how to get them running on my VPS. I have installed racket and apache2
>> amongst other things on my VPS, and I cannot seem to find a tutorial on
>> deploying a racket web app or getting the racket web server running on the
>> server to serve apps. Also, I am not sure which is the one to use; the docs
>> say this or that one is deprecated. Thanks in advance for any pointers.
>> Rob
>> ____________________
>>  Racket Users list:
>>  http://lists.racket-lang.org/users
> -- 
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://faculty.cs.byu.edu/~jay
> "The glory of God is Intelligence" - D&C 93
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Posted on the users mailing list.