reddarien/webserver/apache2/sites-available/default-ssl.conf

47 lines
982 B
Plaintext
Raw Normal View History

2019-10-17 23:46:53 +00:00
<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>
2019-10-20 17:34:18 +00:00
2019-10-17 23:46:53 +00:00
</VirtualHost>
</IfModule>