reddarien/webserver/apache2/sites-available/default-ssl.conf
2019-10-20 12:34:18 -05:00

47 lines
982 B
Plaintext

<IfModule mod_ssl.c>
<VirtualHost *:8443>
ServerName darien.nuestrared.org
ServerAdmin info@tupale.co
DocumentRoot /var/www/html
RewriteEngine On
RewriteCond %{HTTP_HOST} ^darien\.nuestrared.org [NC,OR]
RewriteRule ^/$ /e1 [R]
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/html/>
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
SSLCertificateFile /etc/letsencrypt/darien.crt
SSLCertificateKeyFile /etc/letsencrypt/myserver.key
Include /etc/letsencrypt/options-ssl-apache.conf
#
ErrorDocument 404 /404.php
<Files "404.php">
<If "-z %{ENV:REDIRECT_STATUS}">
RedirectMatch 404 ^/404.php$
</If>
</Files>
</VirtualHost>
</IfModule>