mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 09:17:40 -06:00
Rudimentary apache SSL config file
This commit is contained in:
parent
f17dedd5be
commit
342fa07eb4
@ -1,4 +1,10 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName <domain>
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
|
||||
</VirtualHost>
|
||||
<VirtualHost *:443>
|
||||
ServerName <domain>
|
||||
DocumentRoot "/var/www/pterodactyl/public"
|
||||
AllowEncodedSlashes On
|
||||
@ -7,4 +13,7 @@
|
||||
<Directory "/var/www/pterodactyl/public">
|
||||
AllowOverride all
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/letsencrypt/live/<domain>/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/<domain>/privkey.pem
|
||||
</VirtualHost>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user