24 lines
604 B
Plaintext
24 lines
604 B
Plaintext
<VirtualHost _default_:80>
|
|
ServerName apps.du5t1n.xyz
|
|
|
|
RewriteEngine On
|
|
RewriteRule (.*) https://%{SERVER_NAME}$1 [R=301,L]
|
|
</VirtualHost>
|
|
|
|
<VirtualHost _default_:443>
|
|
ServerName apps.du5t1n.xyz
|
|
|
|
Include conf.d/ssl.include
|
|
SSLCertificateKeyFile /etc/pki/tls/private/apps.du5t1n.xyz.key
|
|
SSLCertificateFile /etc/pki/tls/certs/apps.du5t1n.xyz.cer
|
|
|
|
<IfModule mod_headers.c>
|
|
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
|
|
</IfModule>
|
|
|
|
DocumentRoot /srv/www/apps.du5t1n.xyz/htdocs
|
|
<Directory /srv/www/apps.du5t1n.xyz/htdocs>
|
|
Require all granted
|
|
</Directory>
|
|
</VirtualHost>
|