Last active
August 31, 2015 10:19
-
-
Save freestream/081b95212ae916338e18 to your computer and use it in GitHub Desktop.
Octorber CMS lighttpd config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$HTTP["host"] =~ "example.domain.com" { | |
server.document-root = "/var/www/example/" | |
setenv.add-environment = ( | |
"LARAVEL_ENV" => "dev" | |
) | |
url.rewrite-once = ( | |
"^/(plugins|modules/(system|backend|cms))/(([\w-]+/)+|/|)assets/([\w-]+/)+[-\w^&'@{}[\],$=!#().%+~/ ]+\.(jpg|jpeg|gif|png|svg|swf|avi|mpg|mpeg|mp3|flv|ico|css|map|js|woff|ttf|eot)(\?.*|)$" => "$0", | |
"^/(system|themes/[\w-]+)/assets/([\w-]+/)+[-\w^&'@{}[\],$=!#().%+~/ ]+\.(jpg|jpeg|gif|png|svg|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf|eot)(\?.*|)$" => "$0", | |
"^/install_files/([\w-]+/)+[-\w^&'@{}[\],$=!#().%+~/ ]+\.(jpg|jpeg|gif|png|svg|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf)(\?.*|)" => "$0", | |
"^/uploads/public/[\w-]+/.*$" => "$0", | |
"^/(favicon\.ico|robots\.txt|sitemap\.xml)$" => "$0", | |
"^/install.php$" => "/install.php$1", | |
"(.*)" => "/index.php$1" | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment