Categorie
Information and Communications Technology

CakePHP 4.x Lighttpd Configuration

This is the configuration for running a cakephp application 4.x on the lighttpd web server:

# Enable server modules
server.modules += (
    "mod_alias",
    "mod_cgi",
    "mod_rewrite"
)
# Directory Alias
alias.url       = ( "/TestCake" => "C:/Users/Nicola/Documents/TestCake" )
# CGI Php
cgi.assign      = ( ".php" => "c:/php/php-cgi.exe" )
# Rewrite Cake Php (with /TestCake subdomain)
url.rewrite-once = (
    "^/TestCake/(css|files|img|js|stats)/(.*)$" => "/TestCake/webroot/$1/$2",
    "^/TestCake/(.*)$" => "/TestCake/webroot/index.php/$1"
)

The above configuration is tested on Windows. In this example the cakephp application is served on /TestCake subdomain.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *