mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-11 14:00:27 -06:00
Rudimentary apache SSL config file
This commit is contained in:
parent
f17dedd5be
commit
342fa07eb4
@ -1,4 +1,10 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
|
ServerName <domain>
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{HTTPS} !=on
|
||||||
|
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
|
||||||
|
</VirtualHost>
|
||||||
|
<VirtualHost *:443>
|
||||||
ServerName <domain>
|
ServerName <domain>
|
||||||
DocumentRoot "/var/www/pterodactyl/public"
|
DocumentRoot "/var/www/pterodactyl/public"
|
||||||
AllowEncodedSlashes On
|
AllowEncodedSlashes On
|
||||||
@ -7,4 +13,7 @@
|
|||||||
<Directory "/var/www/pterodactyl/public">
|
<Directory "/var/www/pterodactyl/public">
|
||||||
AllowOverride all
|
AllowOverride all
|
||||||
</Directory>
|
</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