Michael Petnuch wrote: > > On Jul 20, 2006, at 3:01 PM, Michael Peters wrote: > >> >> >> Michael Petnuch wrote: >>> >>> On Jul 20, 2006, at 2:52 PM, Michael Peters wrote: >>> >>> >>> I tried adding this line inside the '/' location and just inside the >>> virtual host declaration. Both didn't work. >>>> >>>> RewriteRule /(.*) /app/$1 >>>> >>> >>> Checking the logs that seems to map to the right place... but it is >>> expecting a real file instead of using Dispatch, i.e. it is giving me a >>> 'File does not exist' error in the apache error log. >> >> Set your RewriteLogLevel to 3 and your then tail your RewriteLog to >> see why >> things aren't getting matched. >> > > I had already set the debug level to 9 (from the Dispatch docs) to see > what was going on. As I said the rewrite logs seem to indicate that the > mapping is occurring as expected but it is trying to load a real file.
Sorry, when you said 'log' earlier I thought you meant 'error log'. > XXX.XXX.XXX.XXX - - [20/Jul/2006:15:11:55 --0400] > [www.petnuch.com/sid#80bde28][rid#842eeb0/initial] (2) rewrite > /main/main -> /app/main/main > XXX.XXX.XXX.XXX - - [20/Jul/2006:15:11:55 --0400] > [www.petnuch.com/sid#80bde28][rid#842eeb0/initial] (2) local path > result: /app/main/main > XXX.XXX.XXX.XXX - - [20/Jul/2006:15:11:55 --0400] > [www.petnuch.com/sid#80bde28][rid#842eeb0/initial] (2) prefixed with > document_root to /var/www/petnuch.com/app/main/main > XXX.XXX.XXX.XXX - - [20/Jul/2006:15:11:55 --0400] > [www.petnuch.com/sid#80bde28][rid#842eeb0/initial] (1) go-ahead with > /var/www/petnuch.com/app/main/main [OK] > > Error log snip: > [Thu Jul 20 15:11:56 2006] [error] [client XXX.XXX.XXX.XXX] File does > not exist: /var/www/petnuch.com/app > > Why is it requiring app be a "real" file when I have a Location > directive for '/app'? Now that I think about it this is more an apache > issue so I apologize for posting it here. But I still appreciate the help. That's a good question. I didn't see anything in the mod_rewrite docs to say that it had to be a real file, but all of the examples only show rewriting to real files. You could try the apache-httpd mailing list to see if they have any suggestions. Another approach would be to put you application under / and your other stuff under /images, /css, etc. Then you'd just override the other stuff to use the default handler. <Location /images> SetHandler default </Location> -- Michael Peters Developer Plus Three, LP --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
