X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lighttpd.conf.example;h=b646d46bcd6b9036ec29435cafb3d9fae2e65b72;hb=dd61ae8fbeee64c85f8186672292335592be1ff5;hp=b8baafc9e36ec6ef75ee176c47ce6b3942927b8e;hpb=b2664e1ae2e2cf66585cdd8696d88efdd053eb3b;p=quix0rs-gnu-social.git diff --git a/lighttpd.conf.example b/lighttpd.conf.example index b8baafc9e3..b646d46bcd 100644 --- a/lighttpd.conf.example +++ b/lighttpd.conf.example @@ -1,2 +1,28 @@ -# Add this line to lighttpd.conf to enable pseudo-rewrites using 404s -server.error-handler-404 = "/index.php" +# 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" +# } +#} + +# If you're using vhosts, you should have per-vhost server.document-root +# settings too! Read how in the respective alternative vhost modules. +#$HTTP["host"] =~ "^social\.example\.com$" { + +# 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" +# )) +# ) + + dir-listing.activate = "disable" + +# Make sure "mod_rewrite" is enabled in server.modules + url.rewrite-if-not-file = ( "^/(.*)$" => "/index.php/$1" ) +#}