-
Notifications
You must be signed in to change notification settings - Fork 46
/
CustomBuild.conf
35 lines (29 loc) · 1.13 KB
/
CustomBuild.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
<VirtualHost *:443>
ServerName custom.ardupilot.org
WSGIDaemonProcess app threads=5
WSGIScriptAlias / /home/custom/CustomBuild/app.wsgi
WSGIScriptAlias /generate /home/custom/CustomBuild/app.wsgi
<Directory /home/custom/CustomBuild/>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Alias /builds /home/custom/base/builds
<Directory /home/custom/base/>
Options FollowSymLinks Indexes
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/custom.ardupilot.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/custom.ardupilot.org/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
<VirtualHost *:80>
ServerName custom.ardupilot.org
RewriteEngine On
RewriteCond %{SERVER_NAME} =custom.ardupilot.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>