Re: [Resin-interest] mod_rewrite question

2008-01-14 Thread Scott Ferguson


On Jan 14, 2008, at 9:21 AM, Arthur Naylor wrote:

that would be great ... but it somehow needs to recognize that the  
file is missing so that the default file can be sent ...


I've added a bug as http://bugs.caucho.com/view.php?id=2328 for that.



can that be done with the rewrite dispatch tags ... or perhaps the  
error tags with the exception attributes ... ??


For now, you could try to use the  directive.

-- Scott






On Jan 14, 2008, at 12:06 PM, Scott Ferguson wrote:



On Jan 11, 2008, at 6:00 PM, Arthur Naylor wrote:


hello !!

i've read elsewhere that this should work fine but am not able to  
get the mod_rewrite condition and rule to affect the serving of  
resin's 404 instead of my default image ...


Once the request gets to Resin, mod_rewrite doesn't affect  
anything.  So this sounds like it would be something that needs to  
be configured on the Resin end of things, e.g. with the dispatch> tag (http://caucho.com/resin/doc/rewrite-tags.xtp)


-- Scott



any leads would be very helpful

thanks !!


On Jan 11, 2008, at 9:10 AM, Arthur Naylor wrote:


hello !!

am trying to use apache's mod_rewrite for missing JPGs using a
default JPG ...

my .htaccess file has ...

RewriteEngine on

RewriteBase /

# missing images
RewriteCond %{REQUEST_URI} !-U
RewriteRule .*\.jpg$ /assets/default.jpg [L,PT]

but resin is still sending back its 404 ... when i request a  
missing

JPG from a page on the site ...

any ideas ???


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] mod_rewrite question

2008-01-14 Thread Arthur Naylor
that would be great ... but it somehow needs to recognize that the  
file is missing so that the default file can be sent ...


can that be done with the rewrite dispatch tags ... or perhaps the  
error tags with the exception attributes ... ??




On Jan 14, 2008, at 12:06 PM, Scott Ferguson wrote:



On Jan 11, 2008, at 6:00 PM, Arthur Naylor wrote:


hello !!

i've read elsewhere that this should work fine but am not able to  
get the mod_rewrite condition and rule to affect the serving of  
resin's 404 instead of my default image ...


Once the request gets to Resin, mod_rewrite doesn't affect  
anything.  So this sounds like it would be something that needs to  
be configured on the Resin end of things, e.g. with the dispatch> tag (http://caucho.com/resin/doc/rewrite-tags.xtp)


-- Scott



any leads would be very helpful

thanks !!


On Jan 11, 2008, at 9:10 AM, Arthur Naylor wrote:


hello !!

am trying to use apache's mod_rewrite for missing JPGs using a
default JPG ...

my .htaccess file has ...

RewriteEngine on

RewriteBase /

# missing images
RewriteCond %{REQUEST_URI} !-U
RewriteRule .*\.jpg$ /assets/default.jpg [L,PT]

but resin is still sending back its 404 ... when i request a missing
JPG from a page on the site ...

any ideas ???


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] mod_rewrite question

2008-01-14 Thread Scott Ferguson


On Jan 11, 2008, at 6:00 PM, Arthur Naylor wrote:


hello !!

i've read elsewhere that this should work fine but am not able to  
get the mod_rewrite condition and rule to affect the serving of  
resin's 404 instead of my default image ...


Once the request gets to Resin, mod_rewrite doesn't affect anything.   
So this sounds like it would be something that needs to be configured  
on the Resin end of things, e.g. with the  tag  
(http://caucho.com/resin/doc/rewrite-tags.xtp)


-- Scott



any leads would be very helpful

thanks !!


On Jan 11, 2008, at 9:10 AM, Arthur Naylor wrote:


hello !!

am trying to use apache's mod_rewrite for missing JPGs using a
default JPG ...

my .htaccess file has ...

RewriteEngine on

RewriteBase /

# missing images
RewriteCond %{REQUEST_URI} !-U
RewriteRule .*\.jpg$ /assets/default.jpg [L,PT]

but resin is still sending back its 404 ... when i request a missing
JPG from a page on the site ...

any ideas ???


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] mod_rewrite question

2008-01-11 Thread Arthur Naylor

hello !!

i've read elsewhere that this should work fine but am not able to get  
the mod_rewrite condition and rule to affect the serving of resin's  
404 instead of my default image ...


any leads would be very helpful

thanks !!


On Jan 11, 2008, at 9:10 AM, Arthur Naylor wrote:


hello !!

am trying to use apache's mod_rewrite for missing JPGs using a
default JPG ...

my .htaccess file has ...

RewriteEngine on

RewriteBase /

# missing images
RewriteCond %{REQUEST_URI} !-U
RewriteRule .*\.jpg$ /assets/default.jpg [L,PT]

but resin is still sending back its 404 ... when i request a missing
JPG from a page on the site ...

any ideas ???


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest