summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/Makefile2
-rw-r--r--src/server/lighttpd.conf8
2 files changed, 8 insertions, 2 deletions
diff --git a/src/server/Makefile b/src/server/Makefile
index 34ca24143..5bc415f07 100644
--- a/src/server/Makefile
+++ b/src/server/Makefile
@@ -42,7 +42,7 @@ test.pgf: LangEng-parse.pgf LangGer-parse.pgf
run: pgf.fcgi
@echo '*********************************************'
- @echo 'See http://localhost:41296/gwt/www/se.chalmers.cs.gf.gwt.TranslateApp/Translate.html'
+ @echo 'See http://localhost:41296/'
@echo '*********************************************'
lighttpd -f lighttpd.conf -D
diff --git a/src/server/lighttpd.conf b/src/server/lighttpd.conf
index e93e63692..58aa1a79e 100644
--- a/src/server/lighttpd.conf
+++ b/src/server/lighttpd.conf
@@ -5,7 +5,9 @@
server.modules = (
"mod_access",
"mod_fastcgi",
- "mod_accesslog" )
+ "mod_accesslog",
+ "mod_redirect"
+ )
var.basedir = var.CWD
server.document-root = basedir
@@ -38,6 +40,10 @@ mimetype.assign = (
accesslog.filename = basedir + "/access.log"
+$HTTP["host"] =~ "^(.*)$" {
+ url.redirect = ( "^/$" => "http://%1/gwt/www/se.chalmers.cs.gf.gwt.TranslateApp/Translate.html" )
+}
+
fastcgi.debug = 0
fastcgi.server = ( "/pgf" =>
((