@
Koell location / {
if (!-e $request_filename) {
rewrite ^/baike/(.*)$ /wiki/index.php?title=$1&$args;
}
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
try_files $uri /wiki/index.php;
expires max;
log_not_found off;
}
# Restrictions based on the .htaccess files
location ^~ ^/(cache|includes|maintenance|languages|serialized|tests|images/deleted)/ {
deny all;
}
location ^~ ^/(bin|docs|extensions|includes|maintenance|mw-config|resources|serialized|tests)/ {
internal;
}
location ^~ /images/ {
try_files $uri /wiki/index.php;
}
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
这样就好了,我也不知道为什么就好了。图片就可以打开了。
换了目录:
http://www.99496.com/baike/文件:9ad6aaed513b73148b7d49f70afcfb32.jpg