lighttpd.conf.example 913 Bytes
Newer Older
mmn's avatar
mmn committed
1 2 3 4 5 6 7 8 9 10 11
# This is completely optional, but if you're running a site with
# ssl="always" configured, then you might as well redirect any of
# your stray HTTP visitors to HTTPS.
#
#$HTTP["scheme"] == "http" {
#  $HTTP["host"] =~ "^(social\.example\.com)$" {
#    url.redirect = ( "^\/?(.*)" => "https://%1/$1" )
#    server.name                 = "%1"
#  }
#}

12 13
# If you're using vhosts, you should have per-vhost server.document-root
#   settings too! Read how in the respective alternative vhost modules.
mmn's avatar
mmn committed
14
#$HTTP["host"] =~ "^social\.example\.com$" {
15

mmn's avatar
mmn committed
16 17 18 19 20 21 22
#    NOTE: configure fastcgi/cgi/fpm here if you're using per-user cgi/fpm
#    fastcgi.server += ( ".php" =>
#      ( "localhost" => (
#        "host" => "127.0.0.1",
#        "port" => "9000"
#      ))
#    )
23 24 25

    dir-listing.activate = "disable"

mmn's avatar
mmn committed
26 27
# Make sure "mod_rewrite" is enabled in server.modules
    url.rewrite-if-not-file = ( "^/(.*)$" => "/index.php/$1" )
28
#}