update readme file
authorBrian Demsky <bdemsky@plrg.eecs.uci.edu>
Sun, 24 Jul 2016 22:39:21 +0000 (15:39 -0700)
committerBrian Demsky <bdemsky@plrg.eecs.uci.edu>
Sun, 24 Jul 2016 22:39:21 +0000 (15:39 -0700)
src/server/README.txt

index c27cbe8435983242f0449b5236ddc6d7324a5b10..ac8a6307823b09e3ef8fa163d1c57589e78f47a0 100644 (file)
@@ -4,5 +4,25 @@
 Setup on ubuntu
 1) Install modules
 
 Setup on ubuntu
 1) Install modules
 
-2) Add .htaccess file
+2) Add .htaccess file in /var/www/html
 RewriteEngine on
 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.