pull/161/head
Pavel Loginov 2019-09-27 23:20:43 +03:00
parent b216127d01
commit 15ae1ad0cf
2 changed files with 1 additions and 45 deletions

View File

@ -11,7 +11,7 @@ ENV MYSQL_DB "haproxywi"
ENV MYSQL_HOST 127.0.0.1
# Copy external files
COPY haproxy-wi.conf /etc/httpd/conf.d/haproxy-wi.conf
COPY httpd/haproxy-wi.conf /etc/httpd/conf.d/haproxy-wi.conf
# Yum clean cache
RUN yum remove epel-release && \

View File

@ -1,44 +0,0 @@
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /var/www/haproxy-wi/app/certs/haproxy-wi.crt
SSLCertificateKeyFile /var/www/haproxy-wi/app/certs/haproxy-wi.key
ServerName haprox-wi.example.com
ErrorLog /var/log/httpd/haproxy-wi.error.log
CustomLog /var/log/httpd/haproxy-wi.access.log combined
TimeOut 600
LimitRequestLine 16380
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>
<Directory /var/www/haproxy-wi/app/certs>
Options +ExecCGI -Indexes +MultiViews
Order Deny,Allow
Deny from all
</Directory>
<Directory /var/www/haproxy-wi/keys>
Options +ExecCGI -Indexes +MultiViews
Order Deny,Allow
Deny from all
</Directory>
<FilesMatch "\.cfg$">
Order Deny,Allow
Deny from all
</FilesMatch>
<FilesMatch "\.db$">
Order Deny,Allow
Deny from all
</FilesMatch>
</VirtualHost>