haproxy-wi/config_other/httpd/roxy-wi.conf

72 lines
1.9 KiB
Plaintext
Raw Normal View History

2019-09-12 07:16:38 +00:00
<VirtualHost *:443>
AddDefaultCharset UTF-8
SetEnv PYTHONIOENCODING utf8
2019-10-28 18:03:14 +00:00
2019-12-15 07:41:24 +00:00
SSLEngine on
SSLCertificateFile /var/www/haproxy-wi/app/certs/haproxy-wi.crt
SSLCertificateKeyFile /var/www/haproxy-wi/app/certs/haproxy-wi.key
2019-09-12 07:16:38 +00:00
ServerName haproxy-wi.example.com
ErrorLog /var/log/httpd/roxy-wi.error.log
CustomLog /var/log/httpd/roxy-wi.access.log combined
2019-12-15 07:41:24 +00:00
TimeOut 600
LimitRequestLine 16380
2019-09-12 07:16:38 +00:00
WSGIDaemonProcess api display-name=%{GROUP} user=apache group=apache processes=1 threads=5
WSGIScriptAlias /api /var/www/haproxy-wi/api/app.wsgi
2019-12-15 07:41:24 +00:00
DocumentRoot /var/www/haproxy-wi
ScriptAlias /cgi-bin/ "/var/www/haproxy-wi/app/"
2019-09-12 07:16:38 +00:00
2019-12-15 07:41:24 +00:00
<Directory /var/www/haproxy-wi/app>
AllowOverride FileInfo
2019-12-15 07:41:24 +00:00
DirectoryIndex overview.py
Options +ExecCGI
AddHandler cgi-script .py
Order deny,allow
Allow from all
</Directory>
2019-09-12 07:16:38 +00:00
<Directory /var/www/haproxy-wi/app/certs>
2019-12-15 07:41:24 +00:00
Options +ExecCGI -Indexes +MultiViews
Order Deny,Allow
Deny from all
</Directory>
2019-09-12 07:16:38 +00:00
<Directory /var/www/haproxy-wi/keys>
Options +ExecCGI -Indexes +MultiViews
Order Deny,Allow
Deny from all
</Directory>
<Directory /var/www/haproxy-wi/app/scripts/terraform/>
Deny from all
</Directory>
2019-09-12 07:16:38 +00:00
<Directory /var/www/haproxy-wi/.git/>
Deny from all
</Directory>
2019-09-12 07:16:38 +00:00
<FilesMatch "\.cfg$">
Order Deny,Allow
Deny from all
</FilesMatch>
<FilesMatch "\.db$">
Order Deny,Allow
Deny from all
</FilesMatch>
<IfModule mod_headers.c>
Header set X-XSS-Protection: 1;
Header set X-Frame-Options: deny
Header set X-Content-Type-Options: nosniff
Header set Strict-Transport-Security: max-age=3600;
Header set Cache-Control no-cache
Header set Expires: 0
<filesMatch ".(ico|css|js|gif|jpeg|jpg|png|svg|woff|ttf|eot)$">
Header set Cache-Control "max-age=86400, public"
</filesMatch>
</IfModule>
2019-12-15 07:41:24 +00:00
</VirtualHost>