Круглая скобка в апачском веб-имени файла

У Вас должны быть те же идентификаторы пользователей и идентификаторы группы на обоих серверах. По крайней мере, те, которые будут использовать папку NFS.

0
задан 25 October 2011 в 20:31
1 ответ

That's because parenthesis are reserved by RFC 3986, and aren't allowed. You will need to percent encode these characters if you wish to use them in your URL.

URIs include components and subcomponents that are delimited by
characters in the "reserved" set.  These characters are called
"reserved" because they may (or may not) be defined as delimiters by
the generic syntax, by each scheme-specific syntax, or by the
implementation-specific syntax of a URI's dereferencing algorithm.
If data for a URI component would conflict with a reserved
character's purpose as a delimiter, then the conflicting data must be
percent-encoded before the URI is formed.

   reserved    = gen-delims / sub-delims

   gen-delims  = ":" / "/" / "?" / "#" / "[" / "]" / "@"

   sub-delims  = "!" / "$" / "&" / "'" / "(" / ")"
               / "*" / "+" / "," / ";" / "="

If you're getting a 404, its because its not encoded and isn't actually looking at the right file, because the parens are being interpreted as delimiters. What you want to do is, assuming you have a file some_image_(huzzah), you would need to express it as some_image_%28huzzah%29 in the URI.

7
ответ дан 4 December 2019 в 11:12

Теги

Похожие вопросы