-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathph-site.conf
37 lines (29 loc) · 835 Bytes
/
ph-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
34
35
36
# File: ph-site.conf
#
# Apache site config file => /etc/apache2/sites-available
WSGIPythonPath /home/pi/pathagar:/home/pi/pathagar/penv/lib/python2.7/site-packages
<VirtualHost *:80>
ServerName library.lan
ServerAdmin webmaster@localhost
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
WSGIScriptAlias / /home/pi/pathagar/wsgi.py
Alias /static/ /home/pi/pathagar/staticfiles/
Alias /static_media/ /var/www/pathagar_media/
<Directory /home/pi/pathagar>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
<Directory /home/pi/pathagar/staticfiles>
Order deny,allow
Allow from all
Require all granted
</Directory>
<Directory /var/www/pathagar_media>
Order deny,allow
Allow from all
Require all granted
</Directory>
</VirtualHost>