forked from aarav-tech/ems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache-site.conf
33 lines (29 loc) · 1.08 KB
/
apache-site.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
<VirtualHost *:88>
ServerAdmin <Email id of server admin>
ServerName <hostname>
DocumentRoot /srv
Alias /static <static folder path>
<Directory "<static folder path>">
Options FollowSymLinks
Order allow,deny
Allow from all
Require all granted
</Directory>
Alias /media <media folder path>
<Directory "<media folder path>">
Options FollowSymLinks
Order allow,deny
Allow from all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/apis_error.log
CustomLog ${APACHE_LOG_DIR}/apis_access.log combined
WSGIDaemonProcess <project name> python-home=<path of python environment> python-path=<project path>
WSGIProcessGroup <project name>
WSGIScriptAlias / <path of wsgi file>
<Directory <path of main app of project>>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>