Welcome Guest | Login

Encoded slash in URL not working correctly with mongrel?

Since I moved to mongrel, encoded slashes in URL no longer work although they used to before. Trying to access the URL from the server where the Rails app is hosted I gedt:

wget http://localhost:XXXX/tvshow/Weeds/Season+3/Release+the+Hounds%2FThe+Seventh+Sense works OK

but

wget http://heardontv.com/tvshow/Weeds/Season+3/Release+the+Hounds%2FThe+Seventh+Sense returns 404

I guess it has to be linked to mongrel/apache proxy thing but I'm not sure how to fix it.

Any help appreciated!
-fred

2007-11-04 10:07 AM

I see the below in Apache error log, you may need to avoid the encoded section.

========
found %2f (encoded '/') in URI (decoded='/tvshow/Weeds/Season+3/Release+the+Hounds/The+Seventh+Sense'), returning 404
========

Does it make more sense to you ?

2007-11-04 11:49 AM

Thanks.

1/ Do you think something like http://httpd.apache.org/docs/2.0/mod/core.html#allowencodedslashes could help? I mean before moving to mongrel, the %2f in the URL was working fine.

2/ Do I have access to this Apache log?

thanks,
-fred

2007-11-04 01:02 PM

Hello,

I have added the mentioned directive, but it doesn't seem to work. Also you can access the apache errorlog using your cpanel>>accesslogs option

2007-11-04 02:04 PM

Regards,
Rahul

Hello Guest! In order to post you must be an active client with us, please log in or sign up today!