Apache2 mod组件中文注解
##如果需要提供基于文本文件的认证,加载此模块,否则注释掉
#LoadModule authn_file_module modules/mod_authn_file.so
##如果需要提供基于DBM文件的认证,加载此模块,否则注释掉
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
##如果需要提供匿名用户认证,加载此模块,否则注释掉
#LoadModule authn_anon_module modules/mod_authn_anon.so
##如果需要提供基于SQL数据库的认证,加载此模块,否则注释掉
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
##如果需要在未正确配置认证模块的情况下简单拒绝一切认证信息,加载此模块,否则注释掉
#LoadModule authn_default_module modules/mod_authn_default.so
Nginx重定向[Rewrite]配置及示例
今天我把webserver换成了NGINX后,发现wordpress不能用了。是NGINX不能识别apache的Rrewrite rule,后来google了一下把问题解决了!先贴代码,后贴找到的相关文章。
vi wordpress.conf
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
server {
listen 80;
server_name www.aaronw.cn;
index index.html index.php;
include wordpress.conf;
listen 80;
server_name www.aaronw.cn;
index index.html index.php;
include wordpress.conf;