1. The problem I’m having:
Hi,
My Caddy setup is improving. All sites seem relatively operational and the rest is on my plate, except for one entry in the Caddyfile, the first defined website, where whatever the document location I specify, I always get the default caddy page. the dns recs seem ok with an A record to the right IP address.
Some related questions include:
Does Caddy carry multiple instances of this default Caddy page or a single one?
If there is just one:
a) how can I change/replace it ?
b) what are the default required conditions to end up on it ?
If there can be many:
a) How so ?
b) What are the rules ?
Why is it picking the first site block ?
Could the issue be related to the fact that in the /etc/hosts file, the server (host => dnaos) is declared as being in that first domain (hyperbase.com) :
<<
127.0.0.1 localhost
127.0.1.1 dnaos.hyperbase.com dnaos
69.70.39.170 dnaos.hyperbase.com dnaos
10.10.10.1 lands.hyperbase.com lands
…
2. Error messages and/or full log output:
N/A
3. Caddy version:
2.8.4
4. How I installed and ran Caddy:
install-caddy.sh
a. System environment:
Ubuntu 24.04
b. Command:
N/A
c. Service/unit/compose file:
N/A
d. My complete Caddy config:
{
debug
email webtek@hyperbase.com
}
(dynamic) {
handle /xml/* {
reverse_proxy localhost:3000
}
}
(logging) {
log {
output file /var/www/log/caddy.log
format json
}
}
hyperbase.com www.hyperbase.com {
import dynamic
handle * {
root /var/www/html/library/hyperlib/hyperbase/
file_server
}
import logging
}
stratml.hyperbase.com {
import dynamic
handle * {
root /var/www/html/library/hyperform/stratml/
file_server
}
import logging
}
dnaos.com www.dnaos.com distributed.solutions www.distributed.solutions {
import dynamic
handle * {
root /var/www/html/library/hyperlib/dnaos/
file_server
}
import logging
}
01communications.com www.01communications.com 01communications.org www.01communications.org {
import dynamic
handle * {
root /var/www/html/library/hyperlib/com01/
file_server
}
import logging
}
cosmos-square.com www.cosmos-square.com cosmossquare.com www.cosmossquare.com square-cosmos.com www.square-cosmos.com squarecosmos.com www.squarecosmos.com {
import dynamic
handle * {
root /var/www/html/library/hypermedia/c2/
file_server
}
import logging
}
telepathmedia.com www.telepathmedia.com {
import dynamic
handle * {
root /var/www/html/library/hypermedia/telepath/
file_server
}
import logging
}
editionsconsonance.com www.editionsconsonance.com consonancepublishing.com www.consonancepublishing.com {
import dynamic
handle * {
root /var/www/html/library/hypermall/consonance/
file_server
}
import logging
}
accordeon101.com www.accordeon101.com accordion101.com www.accordion101.com {
import dynamic
handle * {
root /var/www/html/library/hypermedia/accordeon/
file_server
}
import logging
}
musicnovatory.com www.musicnovatory.com novatoire.com www.novatoire.com {
import dynamic
handle * {
root /var/www/html/library/hypermedia/musnov/
file_server
}
import logging
}
musicphenomenon.com www.musicphenomenon.com tunetuneup.com www.tunetuneup.com {
import dynamic
handle * {
root /var/www/html/library/hypermedia/mup-en/
file_server
}
import logging
}
phenomenemusique.com www.phenomenemusique.com {
import dynamic
handle * {
root /var/www/html/library/hypermedia/mup-fr/
file_server
}
import logging
}
grosbonchant.com www.grosbonchant.com {
import dynamic
handle * {
root /var/www/html/library/hypermedia/gbc/
file_server
}
import logging
}
knowledgearchitect.org www.knowledgearchitect.org knowledgesharing.solutions www.knowledgesharing.solutions {
import dynamic
handle * {
root /var/www/html/library/hyperlib/kao/
file_server
}
import logging
}
kebek.org www.kebek.org prosperite-solidarite.org www.prosperite-solidarite.org {
import dynamic
handle * {
root /var/www/html/library/hyperform/kebek/
file_server
}
import logging
}
prosperity-solidarity.org www.prosperity-solidarity.org {
import dynamic
handle * {
root /var/www/html/library/hyperform/sps/
file_server
}
import logging
}
andrecusson.com www.andrecusson.com {
import dynamic
handle * {
root /var/www/html/library/hyperform/akhu/
file_server
}
import logging
}
michelperrault.com www.michelperrault.com {
import dynamic
handle * {
root /var/www/html/library/hypermall/pero/
file_server
}
import logging
}
conradletendre.com www.conradletendre.com {
import dynamic
handle * {
root /var/www/html/library/hypermall/letendre/
file_server
}
import logging
}
jeanchatillon.com www.jeanchatillon.com {
import dynamic
handle * {
root /var/www/html/library/hypermall/chatillon/
file_server
}
import logging
}
5. Links to relevant resources:
Regards.