> I am unable to get varnish to deliver the customized error page when > requesting a non-existent url.
I should correct the above statement to "I get a blank page when requesting a non-existent directory or html file in the url". Also, I did not provide the varnish log entries before ,so it follows; $ varnishd -V varnishd (varnish-1.1.2) Copyright (c) 2006-2007 Linpro AS / Verdens Gang AS $ uname -a Linux vh006.p 2.6.18-8.1.8.el5 #1 SMP Tue Jul 10 06:39:17 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux Case #1 (Fails!) 30 SessionOpen c X.X.X.X 57544 30 ReqStart c X.X.X.X 57544 1808069741 30 RxRequest c GET 30 RxURL c /notthere 30 RxProtocol c HTTP/1.1 30 RxHeader c Host: mysite.com 30 RxHeader c User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20080206 Firefox/2.0.0.11 30 RxHeader c Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 30 RxHeader c Accept-Language: en-us,en;q=0.5 30 RxHeader c Accept-Encoding: gzip,deflate 30 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 30 RxHeader c Keep-Alive: 300 30 RxHeader c Connection: keep-alive 30 RxHeader c Cookie: OAX=DCIHAke0f0IADHvs; s_cc=true; s_sq=%5B%5BB%5D%5D 30 VCL_call c recv lookup 30 VCL_call c hash hash 30 VCL_call c miss fetch 30 Backend c 29 default 30 ObjProtocol c HTTP/1.1 30 ObjStatus c 302 30 ObjResponse c Moved Temporarily 30 ObjHeader c Date: Thu, 14 Feb 2008 17:51:03 GMT 30 ObjHeader c Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b mod_jk/1.2.25 30 ObjHeader c X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5 30 ObjHeader c Location: http://mysite.com/notthere/index.html 30 ObjHeader c Content-Type: text/plain 30 ObjHeader c Set-Cookie: Coyote-2-c0a81e3d=c0a8823f:0; path=/ 30 TTL c 1808069741 RFC 120 1203011475 1203011463 0 0 0 30 VCL_call c fetch insert 30 Length c 0 30 VCL_call c deliver deliver 30 TxProtocol c HTTP/1.1 30 TxStatus c 302 30 TxResponse c Moved Temporarily 30 TxHeader c Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b mod_jk/1.2.25 30 TxHeader c X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5 30 TxHeader c Location: http://mysite.com/notthere/index.html 30 TxHeader c Content-Type: text/plain 30 TxHeader c Content-Length: 0 30 TxHeader c Date: Thu, 14 Feb 2008 17:51:15 GMT 30 TxHeader c X-Varnish: 1808069741 30 TxHeader c Age: 0 30 TxHeader c Via: 1.1 varnish 30 TxHeader c Connection: keep-alive 30 ReqEnd c 1808069741 1203011475.595798969 1203011475.600512028 0.000309944 0.004663944 0.000049114 30 ReqStart c X.X.X.X 57544 1808069742 30 RxRequest c GET 30 RxURL c /notthere/index.html 30 RxProtocol c HTTP/1.1 30 RxHeader c Host: mysite.com 30 RxHeader c User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20080206 Firefox/2.0.0.11 30 RxHeader c Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 30 RxHeader c Accept-Language: en-us,en;q=0.5 30 RxHeader c Accept-Encoding: gzip,deflate 30 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 30 RxHeader c Keep-Alive: 300 30 RxHeader c Connection: keep-alive 30 RxHeader c Cookie: OAX=DCIHAke0f0IADHvs; s_cc=true; s_sq=%5B%5BB%5D%5D 30 VCL_call c recv lookup 30 VCL_call c hash hash 30 VCL_call c miss fetch 30 Backend c 29 default 30 ObjProtocol c HTTP/1.0 30 ObjStatus c 404 30 ObjResponse c /WEB-INF/templatesnotthere/index 30 ObjHeader c Date: Thu, 14 Feb 2008 17:51:03 GMT 30 ObjHeader c Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b mod_jk/1.2.25 30 ObjHeader c Set-Cookie: JSESSIONID=A23A24A92C07FF3836FA98C596F82503.jboss01; Path=/ 30 ObjHeader c Cache-Control: max-age=600 30 ObjHeader c Expires: Thu, 14 Feb 2008 18:01:03 GMT 30 ObjHeader c Content-Type: text/html 30 TTL c 1808069742 RFC 586 1203011476 1203011463 1203012063 600 0 30 VCL_call c fetch insert 30 Length c 0 30 VCL_call c deliver deliver 30 TxProtocol c HTTP/1.0 30 TxStatus c 404 30 TxResponse c /WEB-INF/templatesnotthere/index 30 TxHeader c Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b mod_jk/1.2.25 30 TxHeader c Cache-Control: max-age=600 30 TxHeader c Expires: Thu, 14 Feb 2008 18:01:03 GMT 30 TxHeader c Content-Type: text/html 30 TxHeader c Date: Thu, 14 Feb 2008 17:51:16 GMT 30 TxHeader c X-Varnish: 1808069742 30 TxHeader c Age: 0 30 TxHeader c Via: 1.1 varnish 30 TxHeader c Connection: keep-alive 30 ReqEnd c 1808069742 1203011475.610707998 1203011476.752576113 0.010195971 1.141789913 0.000078201 Case #2 (Works!) 21 SessionOpen c X.X.X.X 57601 21 ReqStart c X.X.X.X 57601 1808069816 21 RxRequest c GET 21 RxURL c /notthere/works.htm 21 RxProtocol c HTTP/1.1 21 RxHeader c Host: mysite.com 21 RxHeader c User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20080206 Firefox/2.0.0.11 21 RxHeader c Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 21 RxHeader c Accept-Language: en-us,en;q=0.5 21 RxHeader c Accept-Encoding: gzip,deflate 21 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 21 RxHeader c Keep-Alive: 300 21 RxHeader c Connection: keep-alive 21 RxHeader c Cookie: OAX=DCIHAke0f0IADHvs; s_cc=true; s_sq=%5B%5BB%5D%5D 21 VCL_call c recv lookup 21 VCL_call c hash hash 21 VCL_call c miss fetch 21 Backend c 25 default 21 ObjProtocol c HTTP/1.1 21 ObjStatus c 404 21 ObjResponse c Not Found 21 ObjHeader c Date: Thu, 14 Feb 2008 17:51:18 GMT 21 ObjHeader c Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b mod_jk/1.2.25 21 ObjHeader c Set-Cookie: JSESSIONID=00AC75B2FFAE9A1406FCE01D8C91DA67.jboss06; Path=/ 21 ObjHeader c Cache-Control: max-age=600 21 ObjHeader c Expires: Thu, 14 Feb 2008 18:01:18 GMT 21 ObjHeader c Content-Type: text/html;charset=ISO-8859-1 21 ObjHeader c Set-Cookie: Coyote-2-c0a81e3d=c0a8823f:0; path=/ 21 TTL c 1808069816 RFC 576 1203011501 1203011478 1203012078 600 0 21 VCL_call c fetch insert 21 Length c 450 21 VCL_call c deliver deliver 21 TxProtocol c HTTP/1.1 21 TxStatus c 404 21 TxResponse c Not Found 21 TxHeader c Server: Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b mod_jk/1.2.25 21 TxHeader c Cache-Control: max-age=600 21 TxHeader c Expires: Thu, 14 Feb 2008 18:01:18 GMT 21 TxHeader c Content-Type: text/html;charset=ISO-8859-1 21 TxHeader c Content-Length: 450 21 TxHeader c Date: Thu, 14 Feb 2008 17:51:41 GMT 21 TxHeader c X-Varnish: 1808069816 21 TxHeader c Age: 0 21 TxHeader c Via: 1.1 varnish 21 TxHeader c Connection: keep-alive 21 ReqEnd c 1808069816 1203011501.892318964 1203011501.897459984 0.000262022 0.005100012 0.000041008 Regards, Ramon A Hermon
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ varnish-misc mailing list [email protected] http://projects.linpro.no/mailman/listinfo/varnish-misc
