getting a virtual host to listen to post 80
Mark Klein <[email protected]> Thu, 7 Jul 2011 11:49:10 -0400
| Newsgroups | gmane.lisp.cl-http |
|---|---|
| Message-ID | <[email protected]> |
I'd like to create a cl-http virtual host that listens to port 80. The virt=
ual host is deliberatorium.mit.edu, which has a DNS entry that aliases to f=
ranc2.mit.edu. I added the following code to my server:
(http:add-virtual-host "deliberatorium.mit.edu" 8000)
(http:export-url #u("/" :host "deliberatorium.mit.edu" :port 8000)
:computed
:response-function #'(lambda (u s) (declare (ignore u s)) (redi=
rect-to "http://franc2.mit.edu:8000/ci/login")))
That works fine when accessing
http://deliberatorium.mit.edu:8000/
But if I use the following code:
(http:add-virtual-host "deliberatorium.mit.edu" 80)
(http:export-url #u("/index.html" :host "deliberatorium.mit.edu" :port 80)
:computed
:response-function #'(lambda (u s) (declare (ignore u s)) (redi=
rect-to "http://franc2.mit.edu:8000/ci/login")))
and try to access =
http://deliberatorium.mit.edu/
then my browser says:
"Safari can=92t connect to the server =93deliberatorium.mit.edu=94
Any ideas how I can get the port 80 thing to work within the context of cl-=
http? =
My server (Intel Mac OS 10.5) doesn't have Apache running.
Thanks!
Mark
-------------------------------
Mark Klein
Principal Research Scientist
MIT Center for Collective Intelligence
http://cci.mit.edu/klein/
_______________________________________________
WWW-CL mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/www-cl