Skip to content

Instantly share code, notes, and snippets.

@freestream
Last active August 31, 2015 10:19
Show Gist options
  • Save freestream/081b95212ae916338e18 to your computer and use it in GitHub Desktop.
Save freestream/081b95212ae916338e18 to your computer and use it in GitHub Desktop.
Octorber CMS lighttpd config
$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