-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApacheConf.txt
23 lines (22 loc) · 1.01 KB
/
ApacheConf.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<VirtualHost *:443>
ServerName vitaccess.tech
ServerAlias www.vitaccess.tech
DocumentRoot /var/www/webApp/webApp
ServerAdmin [email protected]
WSGIScriptAlias / /var/www/webApp/webapp.wsgi
<Directory /var/www/webApp/webApp/>
Order allow,deny
Allow from all
</Directory>
Alias /static /var/www/webApp/webApp/static
<Directory /var/www/webApp/webApp/static/>
Order allow,deny
Allow from all
</Directory>
ErrorLog "|/usr/bin/rotatelogs ${APACHE_LOG_DIR}/errorlog.%Y-%m-%d 5M"
LogLevel warn
CustomLog "|/usr/bin/rotatelogs ${APACHE_LOG_DIR}/accesslog.%Y-%m-%d 5M" combined
SSLEngine on
SSLCertificateFile /var/cloudflare_cert/cirtificate.pem
SSLCertificateKeyFile /var/cloudflare_cert/site.key
</VirtualHost>