commit
e4c87a11b4
4 changed files with 38 additions and 0 deletions
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
config.cfg |
||||
status/* |
||||
fsfe.org/* |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
/home/max/Dokumente/Selfcoded/build-single.sh |
@ -0,0 +1,20 @@
@@ -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"; |
@ -0,0 +1,14 @@
@@ -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…
Reference in new issue