介绍
这篇文章将为大家详细讲解有关lighttpd隐藏。php的方法,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
lighttpd隐藏。php的方法:1、开启mod_rewrite模块;2,在“/etc/lighttpd/lighttpd.conf”中添加“url.rewrite-once=(…)”; 3,进行全部配置即可。
引用><强> lighttpd中隐藏php后缀方法强>
1。,开启mod_rewrite模块
2。在/etc/lighttpd/lighttpd。会议中添加如下代码
url.rewrite-once=( “^/(+)\ ?(+)“美元,=在“/php 1.美元?“2美元, “^/(+)“美元,=在“/php" 1.美元; )3。全部配置
服务器(“socket"),美元==,“:443“,{ ,,,,,, ,,,,,,,protocol =,“https://" url.rewrite-once=( “^/(+)\ ?(+)“美元,=在“/php 1.美元? 2美元, ) ,,,,,, ,,,,,,,ssl.engine =,“enable" ,,,,,,,ssl.pemfile =,“/etc/lighttpd/newcert.pem" ,,,,,,,ssl.ca-file =,“/etc/lighttpd/rootca.pem" ,,,,,,,ssl.verifyclient.activate=癳nable" setenv.add-environment =, ( ,,,,,,,,,,,,,,,“HTTPS",=祝辞,“知道; ,,,,,,,) ,,,,# server.name =,“192.168.6.120" 时间=server.document-root “/var/www2/? }4。重写写规则参考
http://redmine.lighttpd.net/projects/1/wiki/Docs_ModRewrite关于“lighttpd隐藏。php的方法”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看的到。
lighttpd隐藏。php的方法