我已經安裝了lighttpd的服務器, 上蟒的web2py但我想補充的WordPress博客爲, 問題是我想WordPress的是對site.com/blog不是子域, 哪有我管理lighttpd配置運行!的web2py和WordPress上的lighttpd
url.rewrite-once = (
"^/$" => "/ad",
"^(/.+?/static/.+)$" => "/applications$1",
"(^|/.*)$" => "/fcgihandler.fcgi$1", <-- tried to exclude
"/blog$" => "$0", <-- tried to exclude /blog from rewriting
)
還增加了對PHP-CGI FastCGI支持
fastcgi.server = (
".fcgi" => ("localhost" => (
"check-local" => "disable",
"min-procs" => "1",
"max-procs" => "2",
"socket" => "/tmp/web2py.sock"
)),
".php" => ("localhost" => (
"socket" => "/tmp/php.socket"
))
)
無法做到這一點,雖然, 任何建議,請!
您是否曾嘗試將「/ blog $」=>「$ 0」作爲重寫規則的第一行? – 2013-02-25 16:05:50
檢查這個,可以幫助。 http://stackoverflow.com/questions/8295096/lighttpd-rewrite-for-wordpress-inside-cakephp?rq=1 – 2013-02-25 16:15:17