Actualmente estoy tratando de hacer que mi servidor apache 2 funcione. Me puedo conectar con éxito a través de https. Pero http da un error 404.
vhost http
<VirtualHost example.com:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@example.com
DocumentRoot /var/www/example.com/html
#<Directory /var/www/example.com/html>
# Options Indexes FollowSymLinks MultiViews
# AllowOverride None
# Order allow,deny
# allow from all
#</Directory>
<ifmodule mod_rewrite.c="">
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}$1 [R=301,L]
</ifmodule>
#SSL Redirect
Redirect permanent / https://example.com/
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
Y mi https vhost
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@example.com
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
# Pfad zu den Webinhalten
DocumentRoot /var/www/example.com/html
</VirtualHost>
Gracias por echar un vistazo.