1

我正在尝试在运行 lighttpd 的树莓派上安装 ikiwiki。

我可以在我的用户家中创建 wiki,但是一旦我尝试在网络服务器上查看它(地址+“~/username/wikiname”),它就会返回 404。

将 wiki 目录链接到会/var/www导致 500 错误。

我做错了什么或错过了什么?

根据评论中的要求,这是我的 lighttpd.conf:

server.modules = (
    "mod_access",
    "mod_alias",
    "mod_compress",
    "mod_redirect",
    #"mod_rewrite",
    "mod_fastcgi"
)

server.modules += ( "mod_scgi" )
scgi.server = (
            "/RPC2" =>
            ( "127.0.0.1" =>
              (
               "socket" => "/tmp/rpc.socket",
               "check-local" => "disable",
               "disable-time" => 0,  # don't disable scgi if connection fails
              )
            )
          )
fastcgi.server             = ( ".php" =>
                           ( "localhost" =>
                             (
                            "min-procs" => 1,
                            "max-procs" => 2,
                            "max-load-per-proc" => 4,
                            "socket" => "/tmp/php-fastcgi.socket",
                            "bin-path" => "/usr/bin/php5-cgi"
                             )
                           )
                        )


server.document-root        = "/var/www" 
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80
index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

我还执行了此处突出显示的步骤:http: //ikiwiki.info/tips/dot_cgi/

4

1 回答 1

0

答案在于您发布的配置文件。包含以下内容的行:

url.access-deny             = ( "~", ".inc" )

这阻止了您的 url 请求,请尝试从您的配置文件中删除波浪号。

于 2013-03-07T19:50:23.100 回答