Browse Source

Lighttpd config example updated.

Mikael Nordfeldth 4 years ago
parent
commit
220ec072c9
1 changed files with 21 additions and 6 deletions
  1. 21 6
      lighttpd.conf.example

+ 21 - 6
lighttpd.conf.example

@@ -1,13 +1,28 @@
1
+# This is completely optional, but if you're running a site with
2
+# ssl="always" configured, then you might as well redirect any of
3
+# your stray HTTP visitors to HTTPS.
4
+#
5
+#$HTTP["scheme"] == "http" {
6
+#  $HTTP["host"] =~ "^(social\.example\.com)$" {
7
+#    url.redirect = ( "^\/?(.*)" => "https://%1/$1" )
8
+#    server.name                 = "%1"
9
+#  }
10
+#}
11
+
1 12
 # If you're using vhosts, you should have per-vhost server.document-root
2 13
 #   settings too! Read how in the respective alternative vhost modules.
14
+#$HTTP["host"] =~ "^social\.example\.com$" {
3 15
 
4
-#$HTTP["host"] =~ "^social\.domain\.com$" {
5
-    # NOTE: fastcgi/cgi/fpm config here if you're using per-user cgi/fpm
16
+#    NOTE: configure fastcgi/cgi/fpm here if you're using per-user cgi/fpm
17
+#    fastcgi.server += ( ".php" =>
18
+#      ( "localhost" => (
19
+#        "host" => "127.0.0.1",
20
+#        "port" => "9000"
21
+#      ))
22
+#    )
6 23
 
7 24
     dir-listing.activate = "disable"
8 25
 
9
-# Make sure "mod_rewrite" is enabled in server.modules and change statusnet
10
-#   to your statusnet directory. (uncommented line is for url root install)
11
-# url.rewrite-if-not-file = ( "^/statusnet/(.*)$" => "/statusnet/index.php?p=$1" )
12
-    url.rewrite-if-not-file = ( "^/(.*)$" => "/index.php?p=$1" )
26
+# Make sure "mod_rewrite" is enabled in server.modules
27
+    url.rewrite-if-not-file = ( "^/(.*)$" => "/index.php/$1" )
13 28
 #}