mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 21:05:59 -06:00
20 lines
583 B
ApacheConf
20 lines
583 B
ApacheConf
<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
|
|
php_value upload_max_filesize 100M
|
|
php_value post_max_size 100M
|
|
<Directory "/var/www/pterodactyl/public">
|
|
AllowOverride all
|
|
</Directory>
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/letsencrypt/live/<domain>/fullchain.pem
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/<domain>/privkey.pem
|
|
</VirtualHost>
|