Browse Source

initial commit

tags/v1.0
Max Mehl 2 years ago
commit
e4c87a11b4
4 changed files with 38 additions and 0 deletions
  1. 3
    0
      .gitignore
  2. 1
    0
      build-single.sh
  3. 20
    0
      create-mime.assign.pl
  4. 14
    0
      lighttpd-fsfe.conf

+ 3
- 0
.gitignore View File

@@ -0,0 +1,3 @@
config.cfg
status/*
fsfe.org/*

+ 1
- 0
build-single.sh View File

@@ -0,0 +1 @@
/home/max/Dokumente/Selfcoded/build-single.sh

+ 20
- 0
create-mime.assign.pl View File

@@ -0,0 +1,20 @@
#!/usr/bin/perl -w
use strict;
open MIMETYPES, "/etc/mime.types" or exit;
print "mimetype.assign = (\n";
my %extensions;
while(<MIMETYPES>) {
chomp;
s/\#.*//;
next if /^\w*$/;
if(/^([a-z0-9\/+-.]+)\s+((?:[a-z0-9.+-]+[ ]?)+)$/) {
foreach(split / /, $2) {
# mime.types can have same extension for different
# mime types
next if $extensions{$_};
$extensions{$_} = 1;
print "\".$_\" => \"$1\",\n";
}
}
}
print ")\n";

+ 14
- 0
lighttpd-fsfe.conf View File

@@ -0,0 +1,14 @@
server.modules = ( "mod_access" )
$HTTP["remoteip"] !~ "127.0.0.1" {
url.access-deny = ("") # prevent hosting to the network
}

# change port and document-root accordingly
server.port = 5080
server.document-root = "/home/max/subversion/fsfe/local-build/fsfe.org"
server.errorlog = "/dev/stdout"
server.dir-listing = "enable"
dir-listing.encoding = "utf-8"
index-file.names = ("index.html", "index.en.html")

include_shell "./create-mime.assign.pl"

Loading…
Cancel
Save