From af955080879b3753be3b18aa78661e945f7c24c1 Mon Sep 17 00:00:00 2001 From: Brian Demsky Date: Sun, 24 Jul 2016 15:39:21 -0700 Subject: [PATCH 1/1] update readme file --- src/server/README.txt | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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. -- 2.34.1