This repository has been archived by the owner on Jul 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
liliservices_prod_test.conf
93 lines (73 loc) · 2.78 KB
/
liliservices_prod_test.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<VirtualHost *:80>
#ServerName arswimfdlmlims.nmrl.usdfrc.local
ServerName arswimfdlmlims
DocumentRoot /var/www/
ErrorLog ${APACHE_LOG_DIR}/lili-error.log
CustomLog ${APACHE_LOG_DIR}/lili-access.log combined
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>
WSGIPassAuthorization on
WSGIRestrictStdout Off
WSGIDaemonProcess test python-home=/var/www/testliliservices/venv python-path=/var/www/testliliservices request-timeout=60
WSGIProcessGroup test
WSGIDaemonProcess prod python-home=/var/www/liliservices/venv python-path=/var/www/liliservices request-timeout=60
WSGIProcessGroup prod
<VirtualHost *:443>
#ServerName arswimfdlmlims.nmrl.usdfrc.local
ServerName arswimfdlmlims
DocumentRoot /var/www
WSGIScriptAlias /test /var/www/testliliservices/liliservices/wsgi.py process-group=test
WSGIScriptAlias / /var/www/liliservices/liliservices/wsgi.py process-group=prod
SSLEngine on
#SSLCertificateFile /etc/ssl/certs/lide-selfsigned.crt
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
#SSLCertificateKeyFile /etc/ssl/private/lide-selfsigned.key
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
ErrorLog ${APACHE_LOG_DIR}/lili-error.log
LogLevel alert rewrite:trace3
CustomLog ${APACHE_LOG_DIR}/lili-access.log combined
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
Alias /test/lili/ /var/www/testlili/
<Directory /var/www/testlili/>
Options Indexes FollowSymLinks
DirectoryIndex index.html
Require all granted
AllowOverride All
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^ index.html [L]
</Directory>
Alias /test/static/ /var/www/testliliservices/static/
<Directory /var/www/testliliservices/static/>
Require all granted
</Directory>
<Directory /var/www/testliliservices/liliservices>
<Files wsgi.py>
Require all granted
</Files>
Alias /lili/ /var/www/lili/
<Directory /var/www/lili/>
Options Indexes FollowSymLinks
DirectoryIndex index.html
Require all granted
AllowOverride All
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^ index.html [L]
</Directory>
Alias /static/ /var/www/liliservices/static/
<Directory /var/www/liliservices/static/>
Require all granted
</Directory>
<Directory /var/www/liliservices/liliservices>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>