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 6
/
merlin.conf
71 lines (53 loc) · 2.2 KB
/
merlin.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
# This is an Apache HTTPD configuration file with Merlin-specific directives
# It should be placed in the same conf folder as the main httpd.conf file
# And referenced by the main httpd.conf file with an Include statement
WSGIPassAuthorization on
WSGIRestrictStdout Off
WSGIDaemonProcess production python-home=/var/www/merlin_django/venv python-path=/var/www/merlin_django request-timeout=60
WSGIProcessGroup production
################################################
################# #################
################# PRODUCTION #################
################# #################
################################################
<VirtualHost mercury.wim.usgs.gov:443>
ServerName mercury.wim.usgs.gov
DocumentRoot /var/www/merlin_django
WSGIScriptAlias / /var/www/merlin_django/merlin_django/wsgi.py process-group=production
ServerAdmin [email protected]
SSLEngine on
SSLCertificateKeyFile /etc/ssl/private/star_wim_usgs_gov.key
SSLCertificateChainFile /etc/ssl/certs/DigiCertCA.crt
SSLCertificateFile /etc/ssl/certs/star_wim_usgs_gov.crt
ErrorLog /var/log/apache2/merlin-production-error.log
CustomLog /var/log/apache2/merlin-production-access.log combined
RewriteEngine on
RewriteOptions inherit
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
<Directory /var/www/merlin_django/>
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 /batchupload/ /var/www/batchupload/
<Directory /var/www/batchupload/>
Options Indexes FollowSymLinks
DirectoryIndex index.html
Require all granted
</Directory>
Alias /static/ /var/www/merlin_django/static/
<Directory /var/www/merlin_django/static/>
Require all granted
</Directory>
<Directory /var/www/merlin_django/merlin_django>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>