-# if you're using vhosts, you should have per-vhost server.document-root settings too
-#$HTTP["host"] =~ "^your\.domain\.com$" {
- # NOTE: fastcgi/cgi/fpm config here if you're using per-user cgi/fpm
+# 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"
- url.rewrite-once = (
- "^/(.*)\.(.*)" => "$0",
- "^/(avatar|file|js|plugins|theme)/" => "$0",
- "^/(.+)$" => "/index.php/$1",
- )
- # Add this line to lighttpd.conf to enable pseudo-rewrites using 404s
- # (required for fancy URLs)
- server.error-handler-404 = "/index.php"
+# Make sure "mod_rewrite" is enabled in server.modules
+ url.rewrite-if-not-file = ( "^/(.*)$" => "/index.php/$1" )
#}
-