-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlexonomy_httpd.conf
More file actions
65 lines (53 loc) · 2.36 KB
/
lexonomy_httpd.conf
File metadata and controls
65 lines (53 loc) · 2.36 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
<VirtualHost *:80>
ServerName lexonomy.eu
ServerAlias www.lexonomy.eu
SetOutputFilter DEFLATE
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.lexonomy.eu%{REQUEST_URI} [R,NE]
</VirtualHost>
<VirtualHost *:443>
ServerName lexonomy.eu
ServerAlias www.lexonomy.eu
SetOutputFilter DEFLATE
RewriteEngine on
RewriteCond %{HTTP_HOST} ^lexonomy\.eu$
RewriteRule (.*) https://www.lexonomy.eu%{REQUEST_URI} [R,NE]
SSLEngine on
SSLCACertificateFile /path/to/the/file
SSLCertificateFile /path/to/the/file
SSLCertificateKeyFile /path/to/the/file
CustomLog logs/lexonomy_access_log combined
ErrorLog logs/lexonomy_error_log
DocumentRoot /var/www/lexonomy
AliasMatch "^/(furniture|libs|docs)(.*)" "/path/to/installation/directory/lexonomy/website/$1$2"
####### Uncomment for CGI processing (and comment out mod_wsgi section)
### ScriptAlias / /path/to/installation/directory/lexonomy/website/lexonomy.py/
####### mod_wsgi
WSGIDaemonProcess lexonomy user=apache group=corpadm processes=20 threads=1 home=/path/to/installation/directory/lexonomy/website/
WSGIProcessGroup lexonomy
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /path/to/installation/directory/lexonomy/website/lexonomy.py
# this causes preloading of the app for all processes beforehand, otherwise you get delays until you randomly hit all the 20 initialized
WSGIImportScript /path/to/installation/directory/lexonomy/website/lexonomy.py process-group=lexonomy application-group=%{GLOBAL}
#UNCOMMENT FOLLOWING LINE TO GET TRACEBACKS
#SetEnv DEBUG 1
<Directory /path/to/installation/directory/lexonomy/website>
Require all granted
</Directory>
######## UNCOMMENT FOLLOWING IF YOU PREFER STANDALONE SERVER INSTEAD OF CGI
#
# ProxyTimeout 600
# ProxyRequests Off
# ProxyPreserveHost On
# ProxyVia Full
# <Proxy *>
# Require all granted
# </Proxy>
# <Location />
# ProxyPass http://127.0.0.1:8000/
# ProxyPassReverse http://127.0.0.1:8000/
# #https://access.redhat.com/solutions/54579
# SetEnv proxy-nokeepalive 1
# </Location>
</VirtualHost>