-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathapache.conf.sample
43 lines (34 loc) · 1.13 KB
/
apache.conf.sample
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
<VirtualHost ip:80>
ServerName domain.tld
ServerAlias domain.tld
redirect / https://domain.tld/
</VirtualHost>
<VirtualHost ip:443>
ServerName domain.tld
ErrorLog /path/to/apache_vhost/error.log
CustomLog /path/to/apache_vhost/access.log combined
LogLevel info
SSLEngine On
SSLCertificateFile /path/to/certificate.crt
SSLCertificateKeyFile /path/to/private.key
SSLCACertificateFile /path/to/certication_authority.pem
SSLVerifyClient None
XSendFile On
XSendFilePath /path/to/uploaded_files/
WSGIDaemonProcess domain.tld user=source_user group=www-data threads=25 display-name=%{GROUP}
WSGIProcessGroup domain.tld
WSGIScriptAlias / /path/to/aemanager/application.wsgi
LimitRequestBody 1048576
Alias /media /path/to/virtualenv/lib/python2.6/site-packages/Django-1.2.5-py2.6.egg/django/contrib/admin/media
<Location /media>
SetHandler None
Order allow,deny
Allow from all
</Location>
Alias /static /path/to/aemanager/media
<Location /static>
SetHandler None
Order allow,deny
Allow from all
</Location>
</VirtualHost>