[hunchentoot-devel] "Proxy Error" with new Hunchentoot
Andrei Stebakov
lispercat at gmail.com
Sat Mar 7 22:55:39 UTC 2009
Looks like the problem was in the old Chunga that I had.
When the new hunchentoot executes the function:
(defun read-initial-request-line (stream)
"Reads and returns the initial HTTP request line, catching permitted
errors and handling *BREAK-EVEN-WHILE-READING-REQUEST-TYPE-P*. If no
request could be read, returns NIL."
(let ((*break-on-signals* (and *break-even-while-reading-request-type-p*
*break-on-signals*)))
(handler-case
(let ((*current-error-message* "While reading initial request line:"))
(read-line* stream))
((or end-of-file #-:lispworks usocket:timeout-error) ()
nil))))
The function (read-line* stream) doesn't return, and the debugger
doesn't show any error...
After I upgraded to new chunga things started to move, but now I have
a problem with drakma:http-request. It returns a binary array on a
request like (http-request "http://lisp.org/"), so all my functions
depending on http-request fail. I'll ask about it in drakma ml.
Thank you,
Andrew
On Sat, Mar 7, 2009 at 1:31 PM, William Bruschi
<william.bruschi at gmail.com> wrote:
> Do you have anything in your global proxy configuration file for
> Apache? It's normally located in
> /etc/apache2/mods-available/proxy.conf for Ubuntu systems.. If so,
> try commenting out everything in that file. Also, be sure to enable
> mod_proxy AND mod_proxy_http.
>
> On Sat, Mar 7, 2009 at 11:10 AM, Andrei Stebakov <lispercat at gmail.com> wrote:
>> I got the new version of hunchentoot, modified my code and started the acceptor.
>> When I try to connect to the web pages handled by hunchentoot, I got
>> "Proxy Error" message in the browser without any delay.
>> At the same time I have my production hunchentoot (old version)
>> running without problems.
>> I also tried to put
>> ProxyPass /hunchentoot http://127.0.0.1:3000/hunchentoot
>> ProxyPassReverse /hunchentoot http://127.0.0.1:3000/hunchentoot
>> into the apache httpd.conf file to use the hunchentoot test package
>> After I start the acceptor (setf acc1 (hunchentoot:start
>> (make-instance 'hunchentoot:acceptor :port 3000)))
>> And run the tests I have a bunch of messages like:
>> "<p>The requested URL /hunchentoot/test/parameter_utf8_get.html was
>> not found on this server.</p>"
>> (BTW, I think there is some discrepancy in the hunchentoot
>> documentation where it say to create proxy port 3000 and then says to
>> create acceptor on port 4242)
>> "sudo sudo netstat -atnp" shows that all servers are running properly.
>> Does it mean that I have some problem with hunchentoot and apache
>> mod_proxy? How can I troubleshoot it?
>> I tried to put a (break) in my own my-list-request-dispatcher, but the
>> request doesn't even get there.
>> I use sbcl-1.0.23 on Ubuntu.
>>
>> Thank you,
>> Andrei
>>
>> _______________________________________________
>> tbnl-devel site list
>> tbnl-devel at common-lisp.net
>> http://common-lisp.net/mailman/listinfo/tbnl-devel
>>
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
More information about the Tbnl-devel
mailing list