aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-06-14 13:10:02 -0700
committerThomas Willingham <founder@kakste.com>2013-06-14 13:10:02 -0700
commit3c98d184c3226e894da7711941cd8dc2ec038821 (patch)
tree8ce057a9bae57d7f66bab6450b611f6a9012bdb7
parent2a9611467ba556c7ccc9231cb5e320c52e0bb77e (diff)
parented939ed21cc1e81cdf8b1c20deadc925bdae342b (diff)
downloadvolse-hubzilla-3c98d184c3226e894da7711941cd8dc2ec038821.tar.gz
volse-hubzilla-3c98d184c3226e894da7711941cd8dc2ec038821.tar.bz2
volse-hubzilla-3c98d184c3226e894da7711941cd8dc2ec038821.zip
Merge pull request #57 from git-marijus/patch-1
beautify code
-rw-r--r--sample-lighttpd.conf (renamed from doc/install/sample-lighttpd.conf)63
1 files changed, 33 insertions, 30 deletions
diff --git a/doc/install/sample-lighttpd.conf b/sample-lighttpd.conf
index 99971d9d1..213719ac9 100644
--- a/doc/install/sample-lighttpd.conf
+++ b/sample-lighttpd.conf
@@ -1,11 +1,12 @@
# See http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions
### LOAD MODULES
-server.modules = ( "mod_access",
-"mod_accesslog",
-"mod_fastcgi",
-"mod_redirect",
-"mod_rewrite"
+server.modules = (
+ "mod_access",
+ "mod_accesslog",
+ "mod_fastcgi",
+ "mod_redirect",
+ "mod_rewrite"
)
### BASIC STUFF
@@ -29,19 +30,21 @@ dir-listing.activate = "disable"
server.reject-expect-100-with-417 = "disable"
### DEFINE SUPPORTED INDEX FILENAMES
-index-file.names = ( "index.html",
-"index.htm",
-"index.php"
+index-file.names = (
+ "index.html",
+ "index.htm",
+ "index.php"
)
### DEFINE SUPPORTED MIME TYPES
-mimetype.assign = ( ".html" => "text/html",
-".htm" => "text/html",
-".css" => "text/css",
-".txt" => "text/plain",
-".svg" => "image/svg+xml",
-".jpg" => "image/jpeg",
-".png" => "image/png"
+mimetype.assign = (
+ ".html" => "text/html",
+ ".htm" => "text/html",
+ ".css" => "text/css",
+ ".txt" => "text/plain",
+ ".svg" => "image/svg+xml",
+ ".jpg" => "image/jpeg",
+ ".png" => "image/png"
)
### DONT EVER SERVE FILES WITH EXTENSION
@@ -49,34 +52,34 @@ static-file.exclude-extensions = ( ".php" )
### PHP WITH PHP-FPM
### (needs php-fpm installed and running)
-fastcgi.server = (
-".php" => (
-"localhost" => (
-"socket" => "/run/php-fpm/php-fpm.sock",
-"broken-scriptfilename" => "enable",
-"allow-x-sendfile" => "enable"
-)
-)
+fastcgi.server = (
+ ".php" => (
+ "localhost" => (
+ "socket" => "/run/php-fpm/php-fpm.sock",
+ "broken-scriptfilename" => "enable",
+ "allow-x-sendfile" => "enable"
+ )
+ )
)
### ENABLE SSL
$SERVER["socket"] == ":443" {
-ssl.engine = "enable"
-ssl.ca-file = "/etc/lighttpd/certs/ca-certs.crt"
-ssl.pemfile = "/etc/lighttpd/certs/red-ssl.crt"
+ ssl.engine = "enable"
+ ssl.ca-file = "/etc/lighttpd/certs/ca-certs.crt" #adjust to your needs
+ ssl.pemfile = "/etc/lighttpd/certs/red-ssl.crt" #adjust to your needs
}
### RISTRICT ACCESS TO DIRECTORYS AND FILES
$HTTP["url"] =~ "\.(out|log|htaccess)$" {
-url.access-deny = ("")
+ url.access-deny = ("")
}
$HTTP["url"] =~ "(^|/)\.git" {
-url.access-deny = ("")
+ url.access-deny = ("")
}
### URL REWRITE RULES
url.rewrite-if-not-file = (
-"^\/([^\?]*)\?(.*)$" => "/index.php?q=$1&$2",
-"^\/(.*)$" => "/index.php?q=$1"
+ "^\/([^\?]*)\?(.*)$" => "/index.php?q=$1&$2",
+ "^\/(.*)$" => "/index.php?q=$1"
)