From: Brian Demsky Date: Sun, 24 Jul 2016 22:39:21 +0000 (-0700) Subject: update readme file X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=af955080879b3753be3b18aa78661e945f7c24c1;p=iotcloud.git update readme file --- diff --git a/src/server/README.txt b/src/server/README.txt index c27cbe8..ac8a630 100644 --- a/src/server/README.txt +++ b/src/server/README.txt @@ -4,5 +4,25 @@ Setup on ubuntu 1) Install modules -2) Add .htaccess file +2) Add .htaccess file in /var/www/html RewriteEngine on +RewriteBase / +SetHandler cgi-script +RewriteRule ^([a-zA-Z0-9._]*\.iotcloud/([a-zA-Z0-9._]*))$ /cgi-bin/iotcloud.fcgi/$1 + +3) Create account directory. For example, create the directory test.iotcloud in /var/www/html + -- To password protect, create the following .htaccess file in the account directory: +AuthType Basic +AuthName "Private" +AuthUserFile /var/www/html/foo.iotcloud/.htpasswd +Require valid-user + +4) In apache2.conf, add to the /var/www directory section: +AllowOverride FileInfo AuthConfig + +5) In the sites-enabled/000-default.conf file, add the line: +SetEnv IOTCLOUD_ROOT /iotcloud/ + +6) Create the /iotcloud directory. + +7) Create the account directory in the /iotcloud directory. For example, test.iotcloud and give it permissions that the apache daemon can write to.