forked from T3kton/contractor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapache.conf
More file actions
23 lines (18 loc) · 694 Bytes
/
apache.conf
File metadata and controls
23 lines (18 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<VirtualHost *:80>
ServerName contractor
ServerAlias contractor.*
WSGIScriptAlias /api /var/www/contractor/api/contractor.wsgi
WSGIScriptAlias /config /var/www/contractor/api/contractor.wsgi
WSGIDaemonProcess contractor display-name=%{GROUP}
WSGIProcessGroup contractor
WSGIApplicationGroup %{GLOBAL}
DocumentRoot /var/www/contractor/ui
RewriteEngine on
RewriteCond %{REQUEST_URI} "^/api" [OR]
RewriteCond %{REQUEST_URI} "^/config"
RewriteRule ^ - [L]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^ /index.html [L]
ErrorLog ${APACHE_LOG_DIR}/contractor_error.log
CustomLog ${APACHE_LOG_DIR}/contractor_access.log combined
</VirtualHost>