Hi,
i'm trying to create a cert for a subdomain. The subdomain is a redirect to an IP address.
I'm getting the Error:
"Invalid host in redirect target "xxx.xx.xxx.xxx". Only domain names are supported, not IP addresses"
What do i have to set in the .conf file, so that letsencrypt recognizes the subdomain?
The conf for the subdomain:
NameVirtualHost *:443
SSLStrictSNIVHostCheck off
#Define EnableSSL
<VirtualHost *:80>
ServerName subdomain.domain.de
DocumentRoot /var/htdocs/subdomaindir
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !.*service.*
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE,R=301,L]
</IfModule>
<Directory /var/htdocs/subdomaindir/>
Options All
AllowOverride All
Require all granted
</Directory>
TransferLog /var/log/apache2/subdomain.log
</VirtualHost>
<IfDefine EnableSSL>
<VirtualHost *:443>
SSLEngine on
SSLProxyEngine on
SSLProxyVerify none
SSLCertificateFile /etc/letsencrypt/live/subdomain.domain.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/subdomain.domain.de/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/subdomain.domain.de/chain.pem
ServerName subdomain.domain.de
<Directory "/var/htdocs/subdomaindir/">
Options All
AllowOverride All
Require all granted
</Directory>
ServerAdmin info@domain.de
DocumentRoot /var/htdocs/subdomaindir/
TransferLog /var/log/apache2/subdomain.log
</VirtualHost>
</IfDefine>
UnDefine EnableSSL