Aktuelle Version |
Dein Text |
Zeile 5: |
Zeile 5: |
| * abiword dazu ... das wird fett | | * abiword dazu ... das wird fett |
| [[Benutzer:JohannesSchneemann|JohannesSchneemann]] | | [[Benutzer:JohannesSchneemann|JohannesSchneemann]] |
|
| |
| === config ===
| |
| * '''[https://github.com/Pita/etherpad-lite/issues/28 funzt (noch) nicht]'''
| |
| * in /etc/rc.conf:
| |
| lighttpd_enable="YES"
| |
| * generell:
| |
| mkdir -p /usr/local/www/data
| |
| chown -R www:www /usr/local/www/
| |
| * weitere Einstellungen in /usr/local/etc/lighttpd.conf
| |
| * Testen der Einstellungen: lighttpd -t -f lighttpd.conf
| |
| * als reverse proxy
| |
| * hashes zur zuweisung an korrekten server
| |
| * allgemein (minimal) lighttpd.conf:
| |
| server.modules = (
| |
| "mod_access",
| |
| "mod_proxy"
| |
| )
| |
| server.port = 80
| |
| server.bind = "141.56.50.13"
| |
| $HTTP["host"] =~ "^notizen.stura-dresden.de$" {
| |
| proxy.balance = "hash"
| |
| proxy.server = ( "" => ( (
| |
| "host" => "127.0.0.1",
| |
| "port" => 9001
| |
| ) )
| |
| )
| |
| }
| |
| * '''''oder''''' FreeBSD spezifisch:
| |
| ** modules.conf:
| |
| server.modules = (
| |
| "mod_access",
| |
| )
| |
| include "conf.d/proxy.conf"
| |
| ** conf.d/proxy.conf:
| |
| proxy.balance = "hash"
| |
| $HTTP["host"] =~ "^notizen.stura-dresden.de$" {
| |
| proxy.server = ( "" => ( (
| |
| "host" => "141.56.50.13",
| |
| "port" => 9001
| |
| ) )
| |
| )
| |
| }
| |
| ** lighttpd.conf:
| |
| var.log_root = "/var/log/lighttpd"
| |
| var.server_root = "/usr/local/www/data"
| |
| var.state_dir = "/var/run"
| |
| var.home_dir = "/var/spool/lighttpd"
| |
| var.conf_dir = "/usr/local/etc/lighttpd"
| |
| var.vhosts_dir = server_root + "/vhosts"
| |
| var.cache_dir = "/var/cache/lighttpd"
| |
| var.socket_dir = home_dir + "/sockets"
| |
| include "modules.conf"
| |
| server.port = 80
| |
| server.bind = "141.56.50.13"
| |
| server.event-handler = "freebsd-kqueue"
| |
| server.username = "www"
| |
| server.groupname = "www"
| |
| server.document-root = "/usr/local/www/data/"
| |
| server.pid-file = state_dir + "/lighttpd.pid"
| |
| server.errorlog = log_root + "/error.log"
| |
| include "conf.d/access_log.conf"
| |
| include "conf.d/debug.conf"
| |
| server.network-backend = "writev"
| |
| server.max-fds = 2048
| |
| server.stat-cache-engine = "simple"
| |
| server.max-connections = 1024
| |
| index-file.names += (
| |
| "index.xhtml", "index.html", "index.htm", "default.htm", "index.php"
| |
| )
| |
| url.access-deny = ( "~", ".inc" )
| |
| $HTTP["url"] =~ "\.pdf$" {
| |
| server.range-requests = "disable"
| |
| }
| |
| static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" )
| |
| include "conf.d/mime.conf"
| |
| include "conf.d/dirlisting.conf"
| |
| server.follow-symlink = "enable"
| |
| server.upload-dirs = ( "/var/tmp" )
| |
| $SERVER["socket"] == "141.56.50.13:80" { }
| |
| * [http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModProxy Dokumenatation: mod_proxy]
| |
|
| |
|
| == ehterpad-lite ghetto rc script == | | == ehterpad-lite ghetto rc script == |