Manual:$wgImgAuthUrlPathMap/zh

Category:MediaWiki configuration settings/zh#ImgAuthUrlPathMapCategory:MediaWiki configuration settings introduced in version 1.23.0/zh#ImgAuthUrlPathMapCategory:MediaWiki configuration settings still in use/zh#ImgAuthUrlPathMapCategory:Upload variables/zh#ImgAuthUrlPathMap
上传: $wgImgAuthUrlPathMap
Map of relative URL directories to match to internal mwstore:// base storage paths.
引进版本:1.23.0 (Gerrit change 95304; git #0eb52399)
移除版本:仍在使用
允许的值:未指定
[]

细节

For img_auth.php requests, everything after img_auth.php/ is checked to see if starts with any of the prefixes defined here. The prefixes should not overlap. The prefix that matches has a corresponding storage path, which the rest of the URL is assumed to be relative to. The file at that path (or a 404) is send to the client. 例如:

$wgImgAuthUrlPathMap['/timeline/'] = 'mwstore://local-fs/timeline-render/';

The above maps .../img_auth.php/timeline/X to mwstore://local-fs/timeline-render/. The name local-fs should correspond by name to an entry in $wgFileBackends .

Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.23.0/zh Category:MediaWiki configuration settings still in use/zh Category:Upload variables/zh