mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-11 14:00:27 -06:00
Improve readability of Apache virtual host (#411)
This commit is contained in:
parent
92f68cf9c1
commit
fe595b6792
@ -1,19 +1,25 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName <domain>
|
ServerName <domain>
|
||||||
|
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{HTTPS} !=on
|
RewriteCond %{HTTPS} !=on
|
||||||
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
|
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName <domain>
|
ServerName <domain>
|
||||||
DocumentRoot "/var/www/pterodactyl/public"
|
DocumentRoot "/var/www/pterodactyl/public"
|
||||||
|
|
||||||
AllowEncodedSlashes On
|
AllowEncodedSlashes On
|
||||||
|
|
||||||
php_value upload_max_filesize 100M
|
php_value upload_max_filesize 100M
|
||||||
php_value post_max_size 100M
|
php_value post_max_size 100M
|
||||||
|
|
||||||
<Directory "/var/www/pterodactyl/public">
|
<Directory "/var/www/pterodactyl/public">
|
||||||
Require all granted
|
Require all granted
|
||||||
AllowOverride all
|
AllowOverride all
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
SSLCertificateFile /etc/letsencrypt/live/<domain>/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/<domain>/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/<domain>/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/<domain>/privkey.pem
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user