error view sub directory

2 views
Skip to first unread message

Luca Sanna

unread,
Nov 30, 2015, 9:47:48 AM11/30/15
to lighttpd

Hello,
I have a problem with lighttpd , addition to the root I can not see the subdirectories, if I try to view them I get error 404 , attach the file to config
Thank you



server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_rewrite",
  1. "mod_userdir",
    )

server.document-root = "/media/data/py-home/py-home-master/wolfcms/"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
server.dir-listing = "enable"
#dir-listing.activate = "enable"
#dir-listing.encoding = "utf-8"
#alias.url = ( "/cal/" => "/media/data/py-home/py-home-master/wolfcms/luxcal410-calendar/" )

index-file.names = ( "index.php", "index.html", "index.lighttpd.html", "luxcal410-calendar/index.php" )
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" )

  1. 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"

  1. Wolf CMS mod_rewrite rules for lighttpd #
  2. If your Wolf CMS install lives in a sub-directory like: http://www.example.com/mywolf/
  3. you should add the subdirectory between ^ and / in the rules below and in the
    #replacement
  4. value, for example: "^/mywolf/admin(.*)$" => "/mywolf/admin/index.php?$1", #
    url.rewrite-once = (

    "^/install/index.html$" => "/install/index.php?rewrite=1",
    "^/install/index.php$" => "/install/index.php?rewrite=1",
    "^/install/$" => "/install/index.php?rewrite=1",
    "^/install/(.*)$" => "/install/$1",

    "^/wolf/admin/(images|javascripts|stylesheets|themes)/(.*)" => "/wolf/admin/$1/$2",

    "^/favicon\.ico$" => "$0",
    "^/(public|wolf)/(.*)$" => "/$1/$2",

    "^(?:(?!/admin/))/([^?]*)(\?(.*))$" => "/index.php?WOLFPAGE=$1&$2",
    "^/(.*)$" => "/index.php?WOLFPAGE=$1"

)

Reply all
Reply to author
Forward
0 new messages