X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=testing%2Ffastcgi-approach%2FREADME.txt;h=159bbc652980662315b6ffb20ffe4849f0790d73;hb=42239b6616484111246709545ddf8f799a66c238;hp=6d42c251debbc9f144380f9b1e6d85f46e47ccf1;hpb=dc5fd23089d23f18649df40bec82fa01af7782f4;p=matches%2FMCTX3420.git diff --git a/testing/fastcgi-approach/README.txt b/testing/fastcgi-approach/README.txt index 6d42c25..159bbc6 100644 --- a/testing/fastcgi-approach/README.txt +++ b/testing/fastcgi-approach/README.txt @@ -4,11 +4,11 @@ process will receive responses from the browser in the response loop. Hence, sensor data can be read in another thread while the response loop runs. Setup: -Compile fastcgi_test.c with: +Compile fastcgi_test.c with: (the libfcgi-dev package must be installed) gcc fastcgi_test.c -lfcgi -o fastcgi_test -Configure nginx to pass all requests to the address /cgi/ to the application: -Edit /etc/nginx/sites-enabled/default by adding the contents of nginx_server_config.txt +Configure nginx: +Use the config files in -etc-nginx (representing files in /etc/nginx) Restart nginx: /etc/init.d/nginx restart