X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=version2%2Fsrc%2Fserver_malicious_ignore_seq%2FREADME.txt;fp=version2%2Fsrc%2Fserver_malicious_ignore_seq%2FREADME.txt;h=6eb138f6b5792ea362a707d80e988e42e74aa76a;hp=0000000000000000000000000000000000000000;hb=2d769380c2bfb7d2aec482ec9cb3d5e456a73238;hpb=45b3af9d75b19075a2312f5f4b29f5d85763a6d2 diff --git a/version2/src/server_malicious_ignore_seq/README.txt b/version2/src/server_malicious_ignore_seq/README.txt new file mode 100644 index 0000000..6eb138f --- /dev/null +++ b/version2/src/server_malicious_ignore_seq/README.txt @@ -0,0 +1,32 @@ +1) Requires apache2 +2) Requires fastcgi (libapache2-mod-fastcgi and libfcgi-dev) + +Setup on ubuntu +1) Install modules + +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. + +8) Compile cloud server by typing make + +9) Copy it to the cgi-bin directory.