Repository navigation
Expand file tree
/
Copy pathhttpd.conf
More file actions
65 lines (57 loc) · 1.77 KB
/
Copy pathhttpd.conf
File metadata and controls
65 lines (57 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
PidFile /tmp/httpd.pid
Listen 0.0.0.0:8080
User apache
Group apache
DocumentRoot "/var/www/html"
Include conf.modules.d/*.conf
LogLevel notice
ErrorLog /dev/stderr
TransferLog /dev/stdout
# Limit threads forked:
# prefork MPM
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 256
MaxRequestsPerChild 0
WSGIDaemonProcess nitrate python-path=/project/nitrate-config python-home=/project/venv
WSGIProcessGroup nitrate
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /project/venv/lib/python3.11/site-packages/tcms/wsgi.py
WSGISocketPrefix /var/run/wsgi/nitrate-wsgi
<Location "/">
SetHandler wsgi-script
Options All
Require all granted
LimitRequestBody 10485760
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript application/x-javascript text/css
ErrorDocument 401 "Your request is unauthorization."
</Location>
# Uncomment if HTTP over SSL is enabled.
#<IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}
#</IfModule>
# Make sure static files are collected to this directory
Alias /static /project/static
<Location "/static">
SetHandler None
Options -Indexes
# Disable auth on the static content.
AuthType none
Satisfy Any
Allow from All
# Many file types are likely to benefit from compression
# Enable gzip compression on them:
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript application/x-javascript text/css
ExpiresActive On
ExpiresDefault "access plus 10 years"
</Location>
<IfModule mime_module>
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>