griffin
41
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
griffin
42
What contains this?
/etc/apache2/sites-available/www.kyouikulogistics.com.conf
3 Likes
jlh
43
Sorry, just starting now. Had to push back a meeting that was to start in 10 minutes. Bought a bit of extra time. Commencing now
3 Likes
griffin
44
I'm here for a few more too. I think we can get you up and running shortly.
3 Likes
jlh
45
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
jlh
46
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
jlh
48
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
jlh
49
Hmm, but the site is still accessible...scratching my head...
3 Likes
rg305
51
Did you restart the web service?
[Don't until told to do so - just asking]
5 Likes
griffin
52
Be careful @rg305. I'm in the middle of a complex process. Not everything is sane right now.
3 Likes
jlh
53
Thanks
Have not yet....maybe that is why I can still access the site...
4 Likes
rg305
54
Well then I'll fit right in
5 Likes
griffin
55
Correct. Don't reload yet. Give me a second to write.
3 Likes
jlh
56
No worries. On hold and will not restart
4 Likes
griffin
57
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
rg305
58
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
jlh
59
Ok, I have completed that.
3 Likes