forked from elexis-eu/lexonomy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlexonomy_httpd.conf
54 lines (45 loc) · 1.71 KB
/
lexonomy_httpd.conf
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
<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 "^/(widgets|furniture|libs|docs)(.*)" "/path/to/installation/directory/lexonomy/website/$1$2"
ScriptAlias / /path/to/installation/directory/lexonomy/website/lexonomy.py/
#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>