2 2) Requires fastcgi (libapache2-mod-fastcgi and libfcgi-dev)
7 2) Add .htaccess file in /var/www/html
11 RewriteRule ^([a-zA-Z0-9._]*\.iotcloud/([a-zA-Z0-9._]*))$ /cgi-bin/iotcloud.fcgi/$1
13 3) Create account directory. For example, create the directory test.iotcloud in /var/www/html
14 -- To password protect, create the following .htaccess file in the account directory:
17 AuthUserFile /var/www/html/foo.iotcloud/.htpasswd
20 4) In apache2.conf, add to the /var/www directory section:
21 AllowOverride FileInfo AuthConfig
23 5) In the sites-enabled/000-default.conf file, add the line:
24 SetEnv IOTCLOUD_ROOT /iotcloud/
26 6) Create the /iotcloud directory.
28 7) Create the account directory in the /iotcloud directory. For example, test.iotcloud and give it permissions that the apache daemon can write to.
30 8) Compile cloud server by typing make
32 9) Copy it to the cgi-bin directory.