Problem with radosgw and some file name characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/15/14 15:01 , Andrei Mikhailovsky wrote:
>
> Yehuda,
>
> what do you mean by the rewrite rule? is this for Apache? I've used 
> the ceph documentation to create it. My rule is:
>
>
>         RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) 
> /s3gw.fcgi?page=$1&params=$2&%{QUERY_STRING} 
> [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
>
> Or are you talking about something else?
>
> Cheers
>
> Andrei
> ------------------------------------------------------------------------
> *From: *"Yehuda Sadeh" <yehuda at inktank.com>
> *To: *"Andrei Mikhailovsky" <andrei at arhont.com>
> *Cc: *ceph-users at lists.ceph.com
> *Sent: *Thursday, 15 May, 2014 4:05:06 PM
> *Subject: *Re: Problem with radosgw and some file name 
> characters
>
> Your rewrite rule might be off a bit. Can you provide log with 'debug 
> rgw = 20'?
>
> Yehuda
>

The RewriteRule you're using tells Apache to only send URLs with 
AlphaNumeric characters to the FastCGI gateway.  You'll only see those 
errors in the Apache logs, not the RadosGW logs.  I assume the old rule 
was an attempt at armoring the system against invalid inputs, but caused 
more harm than good.

Yehuda's new rule:

RewriteRule  ^/(.*) /s3gw.3.fcgi?%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

Will send all requests to the FastCGI module, regardless of the ASCII 
characters in use.  I can't vouch for Unicode support though.




-- 

*Craig Lewis*
Senior Systems Engineer
Office +1.714.602.1309
Email clewis at centraldesktop.com <mailto:clewis at centraldesktop.com>

*Central Desktop. Work together in ways you never thought possible.*
Connect with us Website <http://www.centraldesktop.com/>  | Twitter 
<http://www.twitter.com/centraldesktop>  | Facebook 
<http://www.facebook.com/CentralDesktop>  | LinkedIn 
<http://www.linkedin.com/groups?gid=147417>  | Blog 
<http://cdblog.centraldesktop.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20140516/2ce649eb/attachment.htm>


[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux