Manual:$wgImgAuthPath

Details
The base path for  .

This is used to interpret the request URL for requests to   that do not match the base upload path.

If false,   is used.

Normally, requests to   have a   which matches  , and in that case, setting this should not be necessary.

This variable is used in case   is accessed via a different path than  .