From 44eeb7a0f78cdbf0a77c351156dae81d3c57e615 Mon Sep 17 00:00:00 2001 From: bjorn Date: Thu, 16 Oct 2008 13:39:09 +0000 Subject: A bunch of changes that make it easy to run the gf server with lighttpd --- src/server/README | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/server/README') diff --git a/src/server/README b/src/server/README index b9da09798..7e93cd41f 100644 --- a/src/server/README +++ b/src/server/README @@ -24,7 +24,25 @@ $ make $ make food -== Running == + + +== Running (lighttpd) == + +- Install lighttpd + - MacPorts: + $ sudo port install lighttpd + +- Run lighttpd: + $ lighttpd -f lighttpd.conf -D + +- First test from the command-line, since debugging is harder from the AJAX UI: + $ curl 'http://localhost:41296/gf/translate?input=this+fish&cat=Item&from=FoodEng' + + +- Go to http://localhost:41296/simple-client.html in your web browser. + + +== Running (Apache) == - Make sure that your web server supports FastCGI. For Apache on OS X, do this: @@ -89,4 +107,4 @@ $ curl 'http://localhost/~bringert/gf-server/gf.fcgi/translate?input=this+fish&c - Check server logs (e.g. /var/log/httpd/error_log) if it doesn't work. -- Go to SERVER_URL/gf-client.html in your web browser. +- Go to SERVER_URL/simple-client.html in your web browser. -- cgit v1.2.3