Inexplicable redirect

Hi.
I configured different domains:

preuss-it.com points to 82.165.61.68
ingo-preuss.de and mcs247.de points to 217.160.42.165

The SSL server report said:
ingo-preuss.de is ok
preuss-it.com is ok
mcs247.de is ok

The only config I did is the conf file for each domain in /etc/apache2/sites-available

ingo-preuss.de.conf:
<VirtualHost *:80>
ServerName ingo-preuss.de
Redirect permanent / https://www.ingo-preuss.de
RewriteEngine on
RewriteCond %{SERVER_NAME} =ingo-preuss.de
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

www.ingo-preuss.de.conf points to the file directory. The same is preuss-it.com and mcs247.de.

But if I google for "Max Scharnewski" I get "ingo-preuss.de" as the first search result.

certbot renew --dry-run said all renewals succeded

A hint would be great.

Best Ingo

My web server is (include version): Apache/2.4.46 (Ubuntu)

The operating system my web server runs on is (include version): Ubuntu

My hosting provider, if applicable, is: 1und1

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 0.31.0

Hi @bolshii

as explained earlier: That's the content of that domain.

https://www.ingo-preuss.de/

There is the content of "Max Scharnewski", so the result is expected.

And it's not a wrong redirect, it's simple the wrong content.

Use

apachectl -S

to find your vHosts and fix that not certificate relevant content problem.

PS:

Oh, what's that?

No, that's wrong, see https://check-your-website.server-daten.de/?q=ingo-preuss.de

Host Type IP-Address is auth. ∑ Queries ∑ Timeout
ingo-preuss.de A 82.165.61.68 Rheinmuenster/Baden-Württemberg/Germany (DE) - SCHLUND No Hostname found yes 1 0
AAAA yes
www.ingo-preuss.de A 82.165.61.68 Rheinmuenster/Baden-Württemberg/Germany (DE) - SCHLUND No Hostname found yes 1 0
A 217.160.42.165 Rheinmuenster/Baden-Württemberg/Germany (DE) - 1&1 IONOS SE No Hostname found yes 1 0
AAAA yes

Your non-www has the wrong ip address. Your www has two ip addresses.

And 82.+ non-www + https has the correct certificate and a redirect, but your 82.+www+https has a wrong redirect (missing / at the end) and a wrong certificate, your 217. + www + https has also a wrong certificate.

Looks like a completely buggy configuration.

1 Like

@bolshii It looks like you were able to correct the problem and obtain a new cert:
crt.sh | 4039030102

Excellent!

If you feel that your solution could help anyone that might be having a similar problem, please post your solution here and mark that post as the solution.

Thanks and Cheers from Miami :beers:

@rg305

please read that output exact.

The certificate was created ths morning (timestamp 2021-02-06 07:45:21 UTC).

Rechecked via https://check-your-website.server-daten.de/?q=ingo-preuss.de - the same errors: Different ip addresses, the "Max Scharnewski" content.

Nothing changed / fixed.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.