Fork-CMS and Lighttpd


Fork-CMS is a young open source content management system which can be found at http://www.fork-cms.com/

The day this is posted, Fork will only work completely out of the box if you use Apache as your webserver.

This is due to the fact that Fork needs to tell Apache through a .htaccess file to be treated specially in order to use prettier URLs.

For everything to work properly in Lighttpd, one must add some directives into Lighttpds configuration to obtain the same result.

Here is a sample configuration

server.modules = (
            "mod_simple_vhost",
            "mod_rewrite",
            ...
)
...
## Fork-CMS
$HTTP["host"] == "mydomain.com" {
    simple-vhost.server-root   = "/var/www/mydomain.com/forkcms"
    simple-vhost.document-root = "/default_www/"
    dir-listing.activate = "disable"
    url.rewrite = (
        "^/(.*)\.(.+)$" => "$0",
        "^/(.+)/?$" => "/index.php/$1"
    )
}

Here I’ve used a vHost because Fork needs to rewrite its URLs using the  root folder of your webserver as its root path, but because Fork is placed inside a subfolder, it needs to be tricked. Using vHosts will tell Lighttpd to treat a folder as a root folder for a certain domain name.

These are the minimal requirements to have Fork-CMS set up and functioning properly as it’s supposed to with regards to configuring Lighttpd as your webserver.

Additional configuration options can be added to Lighttpds configuration file to approximate the behaviour under Apache with regards to caching and compressing and so on.

4 thoughts on “Fork-CMS and Lighttpd

  1. Unquestionably consider that which you said. Your favorite justification seemed to be at the net the easiest thing
    to be mindful of. I say to you, I certainly get irked whilst other folks think about issues that they
    just do not understand about. You controlled to hit the
    nail upon the highest and outlined out the whole thing with no need
    side effect , other people could take a signal.
    Will probably be back to get more. Thanks

  2. Thanks for every other wonderful article.

    Where else may just anybody get that type of info in such an ideal approach
    of writing? I’ve a presentation next week, and I am
    at the look for such info.

Leave a comment