aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--lighttpd.conf25
2 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..faaa791
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,2 @@
+serve:
+ lighttpd -D -f ./lighttpd.conf
diff --git a/lighttpd.conf b/lighttpd.conf
new file mode 100644
index 0000000..5b29684
--- /dev/null
+++ b/lighttpd.conf
@@ -0,0 +1,25 @@
+server.modules = (
+ "mod_fastcgi",
+ "mod_rewrite",
+ "mod_setenv"
+)
+
+server.document-root = var.CWD
+server.port = 5050
+
+url.rewrite-once = (
+ "/?" => "/gorillanest"
+)
+
+setenv.add-environment = (
+ "PERL5LIB" => env.PERL5LIB
+)
+
+fastcgi.server = (
+ "/gorillanest" => ((
+ "bin-path" => "gorillanest",
+ "socket" => "gorillanest.sock",
+ ))
+)
+
+fastcgi.debug = 1