我使用 HHVM 作为守护进程运行,配置如下:
Server {
Port = 80
SourceRoot = /var/www/
}
VirtualHost {
{
Pattern = .*
RewriteRules {
dirindex {
pattern = ^/(.*)/$
to = $1/index.php
qsa = true
}
}
}
}
Extensions {
css = text/css
gif = image/gif
html = text/html
jpe = image/jpeg
jpeg = image/jpeg
jpg = image/jpeg
png = image/png
tif = image/tiff
tiff = image/tiff
txt = text/plain
}
我可以访问 /index.php 但不能获取/获取“未找到”。我错过了什么?