Ping 94.103.101.200 answers.
Something went wrong with port 80
OK lets help it a bit.
And keep it from having to modify your config.
In each vhost config we need add an alias for the acme-challenge request path.
Shall I do it kreator.ch-ssl.conf and kreator.ch.conf ?
How do I do it ?
Yes.
Please show:
grep -Eri 'listen|virtualh|servern|servera|rewrite' /etc/apache2
Only needed in kreator.ch.conf
file.
With something like:
Alias /.well-known/acme-challenge /etc/letsencrypt/.well-known/acme-challenge
It shows my conf backups as well
OK letās reduce it to:
grep -Ei 'listen|virtualh|servern|servera|rewrite' /etc/apache2/sites-enabled/*.conf
[and delete that long post]
Here we go
root@vserv2200.swisslink.ch:/root# grep -Ei 'listen|virtualh|servern|servera|rewrite' /etc/apache2/sites-enabled/*.conf
/etc/apache2/sites-enabled/000-default.conf:<VirtualHost *:80>
/etc/apache2/sites-enabled/000-default.conf: # The ServerName directive sets the request scheme, hostname and port that
/etc/apache2/sites-enabled/000-default.conf: # redirection URLs. In the context of virtual hosts, the ServerName
/etc/apache2/sites-enabled/000-default.conf: #ServerName www.example.com
/etc/apache2/sites-enabled/000-default.conf: ServerName kreator.ch
/etc/apache2/sites-enabled/000-default.conf: ServerAlias www.kreator.ch
/etc/apache2/sites-enabled/000-default.conf: ServerAdmin webmaster@localhost
/etc/apache2/sites-enabled/000-default.conf:RewriteEngine on
/etc/apache2/sites-enabled/000-default.conf:RewriteCond %{SERVER_NAME} =www.kreator.ch [OR]
/etc/apache2/sites-enabled/000-default.conf:RewriteCond %{SERVER_NAME} =kreator.ch
/etc/apache2/sites-enabled/000-default.conf:RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
/etc/apache2/sites-enabled/000-default.conf:
/etc/apache2/sites-enabled/default-ssl.conf:
/etc/apache2/sites-enabled/default-ssl.conf: ServerAdmin webmaster@localhost
/etc/apache2/sites-enabled/default-ssl.conf:
/etc/apache2/sites-enabled/kreator.ch-ssl.conf:<VirtualHost *:443>
/etc/apache2/sites-enabled/kreator.ch-ssl.conf: # The ServerName directive sets the request scheme, hostname and port that
/etc/apache2/sites-enabled/kreator.ch-ssl.conf: # redirection URLs. In the context of virtual hosts, the ServerName
/etc/apache2/sites-enabled/kreator.ch-ssl.conf: #ServerName www.example.com
/etc/apache2/sites-enabled/kreator.ch-ssl.conf: ServerAdmin mathias.zajaczkowski@ubik.ch
/etc/apache2/sites-enabled/kreator.ch-ssl.conf: ServerName kreator.ch
/etc/apache2/sites-enabled/kreator.ch-ssl.conf: ServerAlias www.kreator.ch
/etc/apache2/sites-enabled/kreator.ch-ssl.conf:
/etc/apache2/sites-enabled/kreator.ch.conf:<VirtualHost *:80>
/etc/apache2/sites-enabled/kreator.ch.conf: # The ServerName directive sets the request scheme, hostname and port that
/etc/apache2/sites-enabled/kreator.ch.conf: # redirection URLs. In the context of virtual hosts, the ServerName
/etc/apache2/sites-enabled/kreator.ch.conf: #ServerName mathias.kreator.ch
/etc/apache2/sites-enabled/kreator.ch.conf: ServerAdmin mathias.zajaczkowski@ubik.ch
/etc/apache2/sites-enabled/kreator.ch.conf: ServerName www.kreator.ch
/etc/apache2/sites-enabled/kreator.ch.conf: ServerAlias kreator.ch
/etc/apache2/sites-enabled/kreator.ch.conf: RewriteEngine on
/etc/apache2/sites-enabled/kreator.ch.conf: RewriteCond %{SERVER_NAME} =kreator.ch
/etc/apache2/sites-enabled/kreator.ch.conf: RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
/etc/apache2/sites-enabled/kreator.ch.conf:
root@vserv2200.swisslink.ch:/root#
This:
/etc/apache2/sites-enabled/000-default.conf:<VirtualHost *:80>
/etc/apache2/sites-enabled/000-default.conf: ServerName kreator.ch
/etc/apache2/sites-enabled/000-default.conf: ServerAlias www.kreator.ch
/etc/apache2/sites-enabled/000-default.conf:</VirtualHost>
conflicts with this:
/etc/apache2/sites-enabled/kreator.ch.conf:<VirtualHost *:80>
/etc/apache2/sites-enabled/kreator.ch.conf: ServerName www.kreator.ch
/etc/apache2/sites-enabled/kreator.ch.conf: ServerAlias kreator.ch
/etc/apache2/sites-enabled/kreator.ch.conf:</VirtualHost>
Both contain both names.
Good job.
Can I remove the default one ?
Please show this file:
/etc/apache2/sites-enabled/default-ssl.conf
Compare them both...
Make sure you aren't missing anything and delete one of them.
I have less or more old copies of it.
Fire. Ok?
Line by line.
Be sure you aren't deleting the one that has any lines you need (and that aren't in the other file).
[I don't expect that to be the case; but just to be sure]
Default is gone.
I do not really need mathias.kreator neither.
Fire ?
Unrelated.
So sure.
This file is "involved" (included) but I'm not sure why?
Is not there any more.
Restarted appache,
However https://kreator.ch/ refuses to connect.
I can kill mathias.kreator* in sites-available too. Just in case
Files in sites-available arenāt included.
Only files in sites-enabled.
[which can be links to files in sites-enabled - and usually are]
[So whatās āavailableā can be more than whatās āenabledā]