如何将这个Apache重写规则转换为lighttpd重写规则?
# Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase /adpanel/ # Protect hidden files from being viewed <Files .*> Order Deny,Allow Deny From All </Files> # Protect application and system files from being viewed RewriteRule ^(?:application|modules|system)b.* index.PHP/$0 [L] # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.PHP/URL RewriteRule .* index.PHP/$0 [PT]
为什么不能将不同的服务器绑定到同一个端口?
HTTPredirect到带有Load Balancer的HTTPS AWS EC2
使用imap访问电子邮件
Apache 403同时提供Django静态文件
PHP / Apache中的Inkscape不会将字体呈现给PNG
尝试
server.modules = ( "mod_access","mod_rewrite" ) $HTTP["host"] == "example.com" { server.document-root = "/var/www/example.com/wwwroot/adpanel/" $HTTP["url"] =~ "^/application" { url.access-deny = ("") } $HTTP["url"] =~ "^/modules" { url.access-deny = ("") } $HTTP["url"] =~ "^/system" { url.access-deny = ("") } ## If later than lighttpd 1.4.24 url.rewrite-if-not-file = ( "^/(.*)$" => "/index.PHP/$1" ) ## If older than 1.4.24 yo will have to reference actual files in the rewrite eg #url.rewrite = ( # "/(css|img|js|stats)/" => "$0",## $0 means the actual query string ie don't rewrite. # "^/(.*)$" => "/index.PHP/$1" #) }
希望有所帮助。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。