ikiwiki on lighttpd



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

我可以在用户家中创建wiki,但是一旦我尝试在Web服务器上看到它(地址+"~/用户名/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/

答案就在你发布的配置文件中。包含以下内容的行:

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

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

相关内容

  • 没有找到相关文章

最新更新