mirror of https://github.com/Aidaho12/haproxy-wi
Created Manual install (markdown)
parent
ff1141a9c2
commit
a50057d1ff
|
@ -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
|
||||||
|
<VirtualHost *:8080>
|
||||||
|
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/"
|
||||||
|
|
||||||
|
<Directory /var/www/haproxy-wi/app>
|
||||||
|
Options +ExecCGI
|
||||||
|
AddHandler cgi-script .py
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<FilesMatch "\.config$">
|
||||||
|
Order Deny,Allow
|
||||||
|
Deny from all
|
||||||
|
</FilesMatch>
|
||||||
|
</VirtualHost>
|
||||||
|
```
|
Loading…
Reference in New Issue