diff options
author | root <root@v22013111044215586.yourvserver.net> | 2014-06-29 18:32:40 +0200 |
---|---|---|
committer | root <root@v22013111044215586.yourvserver.net> | 2014-06-29 18:32:40 +0200 |
commit | a47971aefd2bee45f4e57dd1fc3ea24bb370881f (patch) | |
tree | 957bd627cf9016cc826b5a5bbfb6001f4edc4830 /doc/old/install/sample-lighttpd.conf | |
parent | 5df50c4a0bf80f3697c7088c9c4a3815206fe97d (diff) | |
download | volse-hubzilla-a47971aefd2bee45f4e57dd1fc3ea24bb370881f.tar.gz volse-hubzilla-a47971aefd2bee45f4e57dd1fc3ea24bb370881f.tar.bz2 volse-hubzilla-a47971aefd2bee45f4e57dd1fc3ea24bb370881f.zip |
Some doco work. Changed main.bb and added a return link to all .bb files and began planning new entries for user orientated documentation.
Diffstat (limited to 'doc/old/install/sample-lighttpd.conf')
-rw-r--r-- | doc/old/install/sample-lighttpd.conf | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/doc/old/install/sample-lighttpd.conf b/doc/old/install/sample-lighttpd.conf new file mode 100644 index 000000000..721fa25ea --- /dev/null +++ b/doc/old/install/sample-lighttpd.conf @@ -0,0 +1,85 @@ +# See http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions + +### LOAD MODULES +server.modules = ( + "mod_access", + "mod_accesslog", + "mod_fastcgi", + "mod_redirect", + "mod_rewrite" +) + +### BASIC STUFF +server.port = 80 + +server.username = "http" + +server.groupname = "http" + +server.document-root = "/path/to/your/www/files" #adjust to your setup + +server.errorlog = "/var/log/lighttpd/error.log" + +accesslog.filename = "/var/log/lighttpd/access.log" + +### DISABLE DIR LISTING +dir-listing.activate = "disable" + +### DISABLE REJECT EXPECT HEADER +### (needed for curl POST requests - otherwise they fail with error 417) +server.reject-expect-100-with-417 = "disable" + +### DEFINE SUPPORTED INDEX FILENAMES +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" +) + +### DONT EVER SERVE FILES WITH EXTENSION +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" + ) + ) +) + +### ENABLE SSL +$SERVER["socket"] == ":443" { + 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 = ("") +} + +$HTTP["url"] =~ "(^|/)\.git|(^|/)store" { + url.access-deny = ("") +} + +### URL REWRITE RULES +url.rewrite-if-not-file = ( + "^\/([^\?]*)\?(.*)$" => "/index.php?q=$1&$2", + "^\/(.*)$" => "/index.php?q=$1" +) |