配置nginx
server {
server_name wiki.xlongwei.com;
root /soft/dokuwiki;
index doku.php;
location ~ .*\.php$ {
if ( $http_user_agent ~* .*(spider|heimdall).* ) { return 403; }
proxy_set_header Host $host;
fastcgi_pass bbs;
fastcgi_index doku.php;
fastcgi_intercept_errors on;
fastcgi_keep_conn on;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_read_timeout 600;
include fastcgi.conf;
}
location ~ /(conf|bin|inc)/ {
deny all;
}
location ~ /data/ {
internal;
}
}