StuRa Diskussion:Server/SRS13/2015: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
KKeine Bearbeitungszusammenfassung |
K (Matthias Jakobi verschob Seite Diskussion:Jail/SRS13 nach Diskussion:Server/Jails/SRS13: mal korrekt gemacht) |
(kein Unterschied)
|
Version vom 14. Oktober 2012, 19:09 Uhr
Diskussion:Jail/SRS13_OLD
etherpad-lite ressourcen
- etherpad-lite allein ist schön schlank
- abiword dazu ... das wird fett
config
- 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" { }
ehterpad-lite ghetto rc script
- und nochmal: funzt, ist aber nicht standard konform ... eher ein hässlicher hack
#!/bin/sh start(){ echo "staring etherpad-lite ..." >2& su -m etherpad-lite -c /home/etherpad-lite/etherpad-lite/bin/run.sh& echo "done" >2& } stop(){ echo "stopping ehterpad-lite ..." >2& kill `ps -a | grep "node server.js" | grep -v grep | awk '{print $1}'` echo "done" >2& } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo "USAGE: {start|stop|restart}" >2& exit 1 ;; esac exit 0
feuchte Träume
- dudle
- redmine
- pentabarf (ESE)
- engelsystem (ESE)