Why POST methos is not work?
Monty Ree
chulmin2 at hotmail.com
Mon Aug 20 14:50:46 CEST 2007
Hello, all.
I have setup vcl like below, and works well except POST method.
When I using POST Method like writing a message, the site is stops and
trying to connect the backend server continuously.
and I have restarted the varnishd but the result is same.
What's the problem and is there any problem at this config?
====================================================================
backend server1 {
set backend.host = "origin.abc.com";
set backend.port = "80";
}
sub vcl_recv {
if (req.http.Host == "www.abc.com")
{
set req.backend = server1;
set req.http.host = "origin.abc.com";
}
if (req.request == "POST") {
pipe;
}
if (req.request == "GET" && req.http.cookie) {
lookup;
}
if (req.http.Authenticate) {
pipe;
}
if (req.url ~ "\.cgi|php)$") {
pipe;
}
if (req.url ~ "\.(pdf|png|gif|jpg|mp3|svf)$") {
lookup;
}
}
_________________________________________________________________
MSN Messenger를 통해 온라인상에 있는 친구와 대화를 나누세요.
http://www.msn.co.kr/messenger
More information about the varnish-misc
mailing list