教程地址:http://www.lecms.top/course/74.html

 

根目录安装了一套LECMS程序,blog子目录再安装一套,blog子目录安装的时候,数据库地址、账户和密码可以和根目录完全相同,需要注意的是blog子目录的数据库前缀需要设置为blog_用以区分根目录的数据库前缀le_

 

 

blog子目录伪静态测试演示

 

 

blog子目录伪静态测试演示,其他子目录修改blog名称为你的子目录名称

 

location /blog/ {
location ~ \.(zip|rar|7z|gz|ini|htm)$ {deny all;}
location ~ /(view|lecms|admin)/.*\.(htm|ini)?$ {deny all;}
location ~ ^/(static|log|cache|upload)/.*.(php|php3|php4|php5|cgi|asp|aspx|jsp|shtml|shtm|pl|cfm|sql|mdb|dll|exe|com|inc|sh)$ {deny all;}
if (!-e $request_filename) {
	rewrite  ^/blog/(.+)  /blog/index.php?rewrite=$1 last;
}
}


location / {
location ~ \.(zip|rar|7z|gz|ini|htm)$ {deny all;}
location ~ /(view|lecms|admin)/.*\.(htm|ini)?$ {deny all;}
location ~ ^/(static|log|cache|upload)/.*.(php|php3|php4|php5|cgi|asp|aspx|jsp|shtml|shtm|pl|cfm|sql|mdb|dll|exe|com|inc|sh)$ {deny all;}
if (!-e $request_filename) {
	rewrite ^/(.+) /index.php?rewrite=$1 last;
}
}
特别声明:本站所有资源均为学习测试使用,请在下载后48小时之内自主删除,本站以学习为目的不承担任何法律责任!