mirror of
https://git.fsfe.org/FSFE/fsfe-local-build.git
synced 2026-04-18 10:23:05 +02:00
initial commit
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
config.cfg
|
||||||
|
status/*
|
||||||
|
fsfe.org/*
|
||||||
1
build-single.sh
Symbolic link
1
build-single.sh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/home/max/Dokumente/Selfcoded/build-single.sh
|
||||||
20
create-mime.assign.pl
Executable file
20
create-mime.assign.pl
Executable 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
lighttpd-fsfe.conf
Normal file
14
lighttpd-fsfe.conf
Normal 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"
|
||||||
Reference in New Issue
Block a user