-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathltr.conf
executable file
·46 lines (36 loc) · 1.47 KB
/
ltr.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
37
38
39
40
41
42
43
44
45
<VirtualHost *:80>
ServerName luckytreeraffle.com
ServerAlias www.luckytreeraffle.com
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
RewriteCond %{REQUEST_URI} !^/static/
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [R,L]
</VirtualHost>
<VirtualHost *:443>
ServerName luckytreeraffle.com
ServerAlias www.luckytreeraffle.com
Alias /static /home/femibadmus/raffleapi/static
<Directory /home/femibadmus/raffleapi/static>
Require all granted
</Directory>
Alias /images /home/femibadmus/raffleapi/images
Alias /images/images /home/femibadmus/raffleapi/images
<Directory /home/femibadmus/raffleapi/images>
Require all granted
</Directory>
<Directory /home/femibadmus/raffleapi>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess raffleapi python-path=/home/femibadmus/raffleapi:/home/femibadmus/raffleapi/venv/lib/python3.9/site-packages
WSGIProcessGroup raffleapi
WSGIScriptAlias / /home/femibadmus/raffleapi/raffle/wsgi.py
WSGIPassAuthorization On
ErrorLog ${APACHE_LOG_DIR}/ltr-error.log
CustomLog ${APACHE_LOG_DIR}/ltr-access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/luckytreeraffle.com-0001/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/luckytreeraffle.com-0001/privkey.pem
</VirtualHost>