Unauthorized invalid response from (cannot renew)

Add sudo and run these (in this exact order):

a2dissite 000-default.conf
a2dissite webmin.1611560222.conf
a2dissite www.kyoikulogistics.com.conf
a2dissite www.kyoikulogistics.com-le-ssl.conf

cd /etc/apache2/sites-available
mkdir cruft
mv 000-default.conf cruft
mv default-ssl.conf cruft
mv le-redirect-www.kyouikulogistics.com.conf cruft
mv OLD-default-ssl.conf cruft
mv webmin.1611560222.conf cruft

Then show the outputs of these (using sudo):

ls -lRa /etc/apache2/sites-available
ls -lRa /etc/apache2/sites-enabled
3 Likes

What contains this?

/etc/apache2/sites-available/www.kyouikulogistics.com.conf

3 Likes

Sorry, just starting now. Had to push back a meeting that was to start in 10 minutes. Bought a bit of extra time. :slight_smile: Commencing now

3 Likes

I'm here for a few more too. I think we can get you up and running shortly.

3 Likes

ls -lRa /etc/apache2/sites-available
/etc/apache2/sites-available:
total 16
drwxr-xr-x 3 root root 4096 Jan 27 09:56 .
drwxr-xr-x 9 root root 4096 Jan 27 08:42 ..
drwxr-xr-x 2 root root 4096 Jan 27 09:55 cruft
-rw-r--r-- 1 root root 340 May 14 2020 www.kyouikulogistics.com.conf

/etc/apache2/sites-available/cruft:
total 32
drwxr-xr-x 2 root root 4096 Jan 27 09:55 .
drwxr-xr-x 3 root root 4096 Jan 27 09:56 ..
-rw-r--r-- 1 root root 1855 Jan 27 08:46 000-default.conf
-rw-r--r-- 1 root root 6338 Jun 11 2018 OLD-default-ssl.conf
-rw-r--r-- 1 root root 442 May 14 2020 default-ssl.conf
-rw-r--r-- 1 root root 243 May 14 2020 le-redirect-www.kyouikulogistics.com.conf
-rw-r--r-- 1 root root 1398 Jan 27 08:46 webmin.1611560222.conf

3 Likes

And the second one is:

> ls -lRa /etc/apache2/sites-enabled /etc/apache2/sites-enabled: total 8 drwxr-xr-x 2 root root 4096 Jan 27 09:53 . drwxr-xr-x 9 root root 4096 Jan 27 08:42 ..

3 Likes

Perfect. And the file?

3 Likes

This is a bit odd though because the server IP has changed to 192.168.11.14

It's not 192.168.11.37 anymore.

<VirtualHost 192.168.11.37:80>
DocumentRoot 192.168.11.37
ServerName www.kyouikulogistics.com
<Directory "192.168.11.37">
allow from all
Options None
Require all granted

RewriteEngine on
RewriteCond %{SERVER_NAME} =www.kyouikulogistics.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

3 Likes

Hmm, but the site is still accessible...scratching my head...

3 Likes

No it's not... :grin:

2 Likes

Did you restart the web service?
[Don't until told to do so - just asking]

5 Likes

Be careful @rg305. I'm in the middle of a complex process. Not everything is sane right now.

3 Likes

Thanks

Have not yet....maybe that is why I can still access the site... :wink:

4 Likes

Well then I'll fit right in :slight_smile:

5 Likes

Correct. Don't reload yet. Give me a second to write.

3 Likes

No worries. On hold and will not restart :wink:

4 Likes

Edit

/etc/apache2/sites-available/www.kyouikulogistics.com.conf

by erasing everything inside and replacing it with this:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.kyouikulogistics.com
ServerAlias kyouikulogistics.com
DocumentRoot /var/www/html
</VirtualHost>
5 Likes

What?
No /.well-known/acme-challenge/ location?
Keeps certbot from having to make modifications on the fly and having to then restart web services.

5 Likes

Ok, I have completed that.

3 Likes

KISS, Rudy. KISS first.

2 Likes