Browse Source

use log files and add optional PHP support

max.mehl 1 year ago
parent
commit
ba50b33e15
No account linked to committer's email address
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      lighttpd-fsfe.conf.sample

+ 7
- 2
lighttpd-fsfe.conf.sample View File

@@ -1,4 +1,4 @@
1
-server.modules = ( "mod_access" )
1
+server.modules = ( "mod_access", "mod_accesslog" )
2 2
 $HTTP["remoteip"] !~ "127.0.0.1" {
3 3
   url.access-deny = ("")    # prevent hosting to the network
4 4
 }
@@ -6,9 +6,14 @@ $HTTP["remoteip"] !~ "127.0.0.1" {
6 6
 # change port and document-root accordingly
7 7
 server.port                     = 5080
8 8
 server.document-root            = "/home/USER/subversion/fsfe/local-build/fsfe.org"
9
-server.errorlog                 = "/dev/stdout"
9
+server.errorlog                 = "/home/USER/subversion/fsfe/local-build/lighttpd-fsfe.error.log"
10
+accesslog.filename              = "/home/USER/subversion/fsfe/local-build/lighttpd-fsfe.access.log"
10 11
 server.dir-listing              = "enable"
11 12
 dir-listing.encoding            = "utf-8"
12 13
 index-file.names                = ("index.html", "index.en.html")
13 14
 
14 15
 include_shell "./create-mime.assign.pl"
16
+
17
+# Uncomment if your would like to enable php support
18
+# server.modules += ( "mod_cgi" )
19
+# cgi.assign = ( ".php" => "/usr/bin/php-cgi" )

Loading…
Cancel
Save