confused_elf has asked for the wisdom of the Perl Monks concerning the following question:
both of the pages on http://my-pc/index.html and http://my-pc/category/index.html is exactly the same. but somehow, the non-root request for the image always goes to the default path.[info] *** Request 3 (0.001/s) [12648] [Tue Sep 18 15:28:33 2007] *** [debug] "GET" request for "/" from "127.0.1.1" [debug] Rendering template "index.tt" [info] Request took 0.092404s (10.822/s) .----------------------------------------------------------------+---- +-------. | Action | Time | +----------------------------------------------------------------+---- +-------+ | /index | 0.0 +34688s | | /end | 0.0 +49980s | | -> MyApp::View::TT->process | 0.046271s | '----------------------------------------------------------------+---- +-------' but anytime I have a non root request, for example, http://my-pc/category/index.html, it only serves the text part and not the images, [info] *** Request 1 (0.000/s) [12649] [Tue Sep 18 15:30:58 2007] *** [debug] "GET" request for "category/index.html" from "127.0.1.1" [debug] Path is "category/index.html" [debug] Rendering template "category/index.tt" [debug] Rendering template "category/index.tt" [info] Request took 0.119325s (8.380/s) .----------------------------------------------------------------+---- +-------. | Action | Tim +e | +----------------------------------------------------------------+---- +-------+ | /category/index | 0. +081885s | | -> MyApp::View::TT->process | 0.056685s | | /category/end | 0. +024370s | | -> MyApp::View::TT->process | 0.023263s | '----------------------------------------------------------------+---- +-------' [info] *** Request 1 (0.000/s) [12654] [Tue Sep 18 15:30:58 2007] *** [debug] "GET" request for "category/static/images/lnav_search_btn.gif" + from "127.0.1.1" [debug] Arguments are "category/static/images/lnav_search_btn.gif" [debug] Rendering template "category/default" [error] Couldn't render template "file error - category/default: not f +ound" [error] Couldn't render template "file error - category/default: not f +ound" [info] Request took 0.052850s (18.921/s) .----------------------------------------------------------------+---- +-------. | Action | Tim +e | +----------------------------------------------------------------+---- +-------+ | /category/default | 0. +000608s | | /category/end | 0. +006530s | | -> MyApp::View::TT->process | 0.004926s | '----------------------------------------------------------------+---- +-------' [info] *** Request 8 (0.003/s) [12646] [Tue Sep 18 15:30:58 2007] *** [debug] "GET" request for "category/static/images/h_keyword.gif" from +"127.0.1.1" [debug] Arguments are "category/static/images/h_keyword.gif" [debug] Rendering template "category/default" [error] Couldn't render template "file error - category/default: not f +ound" [error] Couldn't render template "file error - category/default: not f +ound" [info] Request took 0.023435s (42.671/s) .----------------------------------------------------------------+---- +-------. | Action | Tim +e | +----------------------------------------------------------------+---- +-------+ | /category/default | 0. +000391s | | /category/end | 0. +004704s | | -> MyApp::View::TT->process | 0.003614s | '----------------------------------------------------------------+---- +-------'
20070921 Janitored by Corion: Put output in code tags, as per Writeup Formatting Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: catalyst/apache problem with non root request not able to serve images
by moritz (Cardinal) on Sep 18, 2007 at 09:12 UTC | |
by confused_elf (Novice) on Sep 18, 2007 at 15:25 UTC |