Re: [Myghty-users] Myghty/Mod_Python and RewriteRule
Brought to you by:
zzzeek
From: Nathan C. T. <na...@ya...> - 2007-04-11 23:16:08
|
My logs? Which ones? The mod_rewrite log says: %tail -f rewrite_log 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [ dev.yapta.com/sid#80d05f0][rid#8d3c050/initial <http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (2) init rewrite engine with requested uri /trip-18335/Minneapolis/St. Paul/Washington/ 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [ dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (3) applying pattern '/trip-([0-9]*)/.*/' to uri '/trip-18335/Minneapolis/St. Paul/Washington/' 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [ dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (2) rewrite '/trip-18335/Minneapolis/St. Paul/Washington/' -> '/user/trip.myt?tab=airline&id =18335' 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (3) split uri=/user/trip.myt?tab=airline&id=18335 -> uri=/user/trip.myt, args=tab=airline&id=18335 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (2) local path result: /user/trip.myt 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (2) prefixed with document_root to /usr/local/data/wwwdev/ntresch/public/user/trip.myt 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (1) go-ahead with /usr/local/data/wwwdev/ntresch/public/user/trip.myt [OK] The error_log says: [Wed Apr 11 16:09:53 2007] [error] TopLevelNotFound: ComponentNotFound: Cant locate component /trip-18335/Minneapolis/St. Paul/Washington/ at /usr/local/lib/python2.5/site-packages/myghty/request.py line 410 My httpd.conf reads: AddHandler mod_python .py AddHandler mod_python .myt PythonHandler myghty.ApacheHandler::handle PythonPath "[r'/usr/local/data/wwwdev/ntresch']+sys.path" PythonOption MyghtyInterpreterName r"ntresch_interp" PythonOption MyghtyComponentRoot \ "[ \ {'components':'/data/wwwdev/ntresch/public'}, \ {'templates':'/data/wwwdev/ntresch/myghty/templates'} \ ]" PythonOption MyghtyDataDir r"/data/wwwdev/ntresch/myghty/data" #PythonHandler mod_python.publisher PythonDebug On These lines are located in the main apache config file. On 4/11/07, Michael Bayer < mi...@my...> wrote: > > what do your logs say ? how do you have mod_python configured ? > > On Apr 11, 2007, at 6:35 PM, Nathan C. Tresch wrote: > > > We're using Myghty and Mod_Python. The following RewriteRule > > produces a 404: > > > > RewriteRule /trip-([0-9]*)/.*/ /user/trip.myt\?tab=airlines > > &id=$1 [L] > > > > Previously, before we converted to PHP, the rule looked like this: > > > > RewriteRule /trip-([0-9]*)/.*/ /user/trip.php\?tab=airlines&id=$1 [L] > > > > This worked. > > > > Can anyone tell me what gives? > > > > > > -- > > Nathan C. Tresch > > Software Engineer > > YapTA! Inc. > > ---------------------------------------------------------------------- > > --- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net 's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php ? > > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > > _______________ > > Myghty-users mailing list > > Myg...@li... > > https://lists.sourceforge.net/lists/listinfo/myghty-users > > -- Nathan C. Tresch Software Engineer YapTA! Inc. |