Project

General

Profile

[Solved] error view sub directory

Added by sanluca over 8 years ago

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",
#    "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" )

# 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" 

# 
# Wolf CMS mod_rewrite rules for lighttpd
#
# If your Wolf CMS install lives in a sub-directory like: http://www.example.com/mywolf/
# you should add the subdirectory between ^ and / in the rules below and in the replacement
# 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" 

)

Replies (1)

RE: [Solved] error view sub directory - Added by gstrauss about 7 years ago

Make sure that the following exist:
/media/data/py-home/py-home-master/wolfcms/index.php
/media/data/py-home/py-home-master/wolfcms/install/index.php

There might be something that is intercepting the requests due to

include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

Run lighttpd -f /etc/lighttpd/lighttpd.conf -p and review the output of the complete lighttpd config, including the results of the include_shell commands.

Among other things, you need to load mod_cgi or mod_fastcgi and have one of them configured to run those index.php files.

    (1-1/1)