PadowYT2 369fa557cb
Edits to the documentation (#553)
Co-authored-by: Daniel Barton <danielb@purpleflaghosting.com>
Co-authored-by: Louis Ravignot Dos Santos <louis.rds@akticube.fr>
2024-08-28 20:12:54 -06:00

29 lines
791 B
ApacheConf

<VirtualHost *:80>
# Replace the example <domain> with your domain name or IP address
ServerName <domain>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>
<VirtualHost *:443>
# Replace the example <domain> with your domain name or IP address
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">
Require all granted
AllowOverride all
</Directory>
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/<domain>/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/<domain>/privkey.pem
</VirtualHost>