[Lispweb] Handling 'www.' in a domain name

Jonathon McKitrick jcm at FreeBSD-uk.eu.org
Wed Oct 11 16:23:19 CDT 2006


On Fri, Oct 06, 2006 at 07:05:44AM -0500, Brian Mastenbrook wrote:
: (make-instance 'serve-event-reverse-proxy-listener
:                      :translations
:                      `((,(urlstring *url-root*)
:                          (:wild-host "/")))
:                      :address #(0 0 0 0)
:                      :port *internal-port*)
: 
: Replace the (:wild-host "/") with "foo.com" if you like.

I'm trying to get this to work, and I'm having some problems.  First of all,
there is no documentation or example for any setting other than using a
different port for forwarding.  I can't figure out what the "/" in the
:wild-host option does.

What I would like to do is this:
1.  Run one image listening on port 8000, accepting all requests from foo.com
AND www.foo.com that come on port 80.

2.  Run another image listening on some other port, say, 9000, accepting
requests from beta.foo.com on port 9000.

Is this feasible?

Jonathon McKitrick
--
My other computer is your Windows box.



More information about the lispweb mailing list