2 # my.gpodder.org configuration file for lighttpd
4 # This file is part of my.gpodder.org.
6 # my.gpodder.org is free software: you can redistribute it and/or modify it
7 # under the terms of the GNU Affero General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or (at your
9 # option) any later version.
11 # my.gpodder.org is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
14 # License for more details.
16 # You should have received a copy of the GNU Affero General Public License
17 # along with my.gpodder.org. If not, see <http://www.gnu.org/licenses/>.
21 # How to setup for lighttpd (on Debian):
22 # - Copy this file to /etc/lighttpd/
23 # - Edit var.mygpo_home and var.mygpo_domain below
24 # - Add the following line to /etc/lighttpd/lighttpd.conf:
25 # include "mygpo.lighttpd.conf"
27 # http://iamtgc.com/2007/07/04/django-on-lighttpd-with-fastcgi/
28 # http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/
31 var.mygpo_home = "/srv/mygpo"
32 var.mygpo_domain = "my.gpodder.org"
34 $HTTP["host"] == mygpo_domain {
35 server.document-root = mygpo_home + "/htdocs",
36 server.errorlog = mygpo_home + "/logs/error.log",
37 accesslog.filename = mygpo_home + "/logs/access.log",
41 "bin-path" => mygpo_home + "/mygpo.fcgi",
42 "socket" => "/tmp/mygpo-" + mygpo_domain + ".sock",
43 "check-local" => "disable",
50 "^(/media.*)$" => "$1",
51 "^/(favicon\.ico|favicon\.png|robots\.txt)$" => "/$1",
52 "^(/.*)$" => "/mygpo.fcgi$1",