diff --git a/Manual-install.md b/Manual-install.md new file mode 100644 index 0000000..7699a4a --- /dev/null +++ b/Manual-install.md @@ -0,0 +1,35 @@ +For install just clone: +``` +$ cd /var/www/ +$ git clone https://github.com/Aidaho12/haproxy-wi.git /var/www/haproxy-wi +$ chown -R apache:apache haproxy-wi/ +Or if use Debian/Ubuntu: +$ chown -R www-data:www-data haproxy-wi/ +$ pip3 install -r haproxy-wi/requirements.txt +$ chmod +x haproxy-wi/app/*.py +``` +For Apache do virtualhost with cgi-bin. Like this: +``` +# vi /etc/httpd/conf.d/haproxy-wi.conf + + ServerName haproxy-wi + ErrorLog /var/log/httpd/haproxy-wi.error.log + CustomLog /var/log/httpd/haproxy-wi.access.log combined + TimeOut 600 + + DocumentRoot /var/www/haproxy-wi + ScriptAlias /cgi-bin/ "/var/www/haproxy-wi/app/" + + + Options +ExecCGI + AddHandler cgi-script .py + Order deny,allow + Allow from all + + + + Order Deny,Allow + Deny from all + + +``` \ No newline at end of file