RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / luxcal mod_rewrite on lighttpd
Posted:  14 Dec 2015 12:41
hi,
I have to integrate lux calendar with wolf cms in lighttpd, wolf cms uses mod_rewrite, and lux calendar does not work, someone can tell me how to set the mod_rewrite per lux calendar?
I enclose lighttpd.conf
thank you all

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"