Hi Mohammed,
the script is called caddy-install.sh :
<<
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf ‘https://dl.cloudsmith.io/public/caddy/stable/gpg.key’ | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf ‘https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt’ | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
I put the Caddyfile in the current folder at the time, which was my personal folder.
As much as I can remember, in a terminal window I typed
caddy run, and it has been running since, it seems.
Now, when I do caddy validate, it tells me that caddy is successfully configured and returns the json version of the Caddyfile, as :
<<
{“tls”: {“automation”:{“policies”:[{“subjects”:[“prosperity-solidarity.org”,“www.prosperity-solidarity.org”,“editionsconsonance.com”,“www.editionsconsonance.com”,“knowledgearchitect.org”,“www.knowledgearchitect.org”,“01communications.com”,“www.01communications.com”,“phenomenemusique.com”,“www.phenomenemusique.com”,“musicphenomenon.com”,“www.musicphenomenon.com”,“michelperrault.com”,“www.michelperrault.com”,“conradletendre.com”,“www.conradletendre.com”,“cosmos-square.com”,“www.cosmos-square.com”,“telepathmedia.com”,“www.telepathmedia.com”,“musicnovatory.com”,“www.musicnovatory.com”,“jeanchatillon.com”,“www.jeanchatillon.com”,“accordeon101.com”,“www.accordeon101.com”,“grosbonchant.com”,“www.grosbonchant.com”,“andrecusson.com”,“www.andrecusson.com”,“hyperbase.com”,“www.hyperbase.com”,“dnaos.com”,“www.dnaos.com”,“kebek.org”,“www.kebek.org”,“stratml.hyperbase.com”]},{}]}}, “http”: {“servers”:{“remaining_auto_https_redirects”:{“listen”:[“:80”],“routes”:[{},{}],“logs”:{“logger_names”:{“01communications.com”:[“log3”],“accordeon101.com”:[“log7”],“andrecusson.com”:[“log15”],“conradletendre.com”:[“log17”],“cosmos-square.com”:[“log4”],“dnaos.com”:[“log2”],“editionsconsonance.com”:[“log6”],“grosbonchant.com”:[“log11”],“hyperbase.com”:[“log0”],“jeanchatillon.com”:[“log18”],“kebek.org”:[“log13”],“knowledgearchitect.org”:[“log12”],“michelperrault.com”:[“log16”],“musicnovatory.com”:[“log8”],“musicphenomenon.com”:[“log9”],“phenomenemusique.com”:[“log10”],“prosperity-solidarity.org”:[“log14”],“stratml.hyperbase.com”:[“log1”],“telepathmedia.com”:[“log5”],“www.01communications.com”:[“log3”],“www.accordeon101.com”:[“log7”],“www.andrecusson.com”:[“log15”],“www.conradletendre.com”:[“log17”],“www.cosmos-square.com”:[“log4”],“www.dnaos.com”:[“log2”],“www.editionsconsonance.com”:[“log6”],“www.grosbonchant.com”:[“log11”],“www.hyperbase.com”:[“log0”],“www.jeanchatillon.com”:[“log18”],“www.kebek.org”:[“log13”],“www.knowledgearchitect.org”:[“log12”],“www.michelperrault.com”:[“log16”],“www.musicnovatory.com”:[“log8”],“www.musicphenomenon.com”:[“log9”],“www.phenomenemusique.com”:[“log10”],“www.prosperity-solidarity.org”:[“log14”],“www.telepathmedia.com”:[“log5”]}}},“srv0”:{“listen”:[“:443”],“routes”:[{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group38”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/“]}]},{“group”:“group38”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:”/var/www/html/library/hyperform/sps/“},{“handler”:“file_server”,“hide”:[”./Caddyfile"]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group40”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:["/xml/”]}]},{“group”:“group40”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hypermall/consonance/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group42”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/“]}]},{“group”:“group42”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:”/var/www/html/library/hyperlib/ka/“},{“handler”:“file_server”,“hide”:[”./Caddyfile"]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group44”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:["/xml/”]}]},{“group”:“group44”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hyperlib/com01/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group46”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/“]}]},{“group”:“group46”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:”/var/www/html/library/hypermedia/mup-fr/“},{“handler”:“file_server”,“hide”:[”./Caddyfile"]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group48”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:["/xml/”]}]},{“group”:“group48”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hypermedia/mup-en/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group50”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/“]}]},{“group”:“group50”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:”/var/www/html/library/hypermall/pero/“},{“handler”:“file_server”,“hide”:[”./Caddyfile"]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group52”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:["/xml/”]}]},{“group”:“group52”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hypermall/letendre/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group54”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/“]}]},{“group”:“group54”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:”/var/www/html/library/hyperform/stratml/“},{“handler”:“file_server”,“hide”:[”./Caddyfile"]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group56”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:["/xml/”]}]},{“group”:“group56”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hypermedia/c2/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group58”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/“]}]},{“group”:“group58”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:”/var/www/html/library/hypermedia/telepath/“},{“handler”:“file_server”,“hide”:[”./Caddyfile"]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group60”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:["/xml/”]}]},{“group”:“group60”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hypermedia/musnov/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group62”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/“]}]},{“group”:“group62”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:”/var/www/html/library/hypermall/chatillon/“},{“handler”:“file_server”,“hide”:[”./Caddyfile"]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group64”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:["/xml/”]}]},{“group”:“group64”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hypermedia/accordeon/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group66”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/“]}]},{“group”:“group66”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:”/var/www/html/library/hypermedia/gbc/“},{“handler”:“file_server”,“hide”:[”./Caddyfile"]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group68”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:["/xml/”]}]},{“group”:“group68”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hyperform/akhu/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group70”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/“]}]},{“group”:“group70”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:”/var/www/html/library/hyperbase/hyperbase/“},{“handler”:“file_server”,“hide”:[”./Caddyfile"]}]}]}]}]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group72”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:["/xml/”]}]},{“group”:“group72”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hyperlib/dnaos/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}
]}],“terminal”:true},{“handle”:[{“handler”:“subroute”,“routes”:[{“group”:“group74”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“reverse_proxy”,“upstreams”:[{“dial”:“localhost:3000”}]}]}]}],“match”:[{“path”:[“/xml/*”]}]},{“group”:“group74”,“handle”:[{“handler”:“subroute”,“routes”:[{“handle”:[{“handler”:“vars”,“root”:“/var/www/html/library/hyperform/kebek/”},{“handler”:“file_server”,“hide”:[“./Caddyfile”]}]}]}]}]}],“terminal”:true}],“tls_connection_policies”:[{}],“automatic_https”:{},“logs”:{“logger_names”:{“01communications.com”:[“log3”],“accordeon101.com”:[“log7”],“andrecusson.com”:[“log15”],“conradletendre.com”:[“log17”],“cosmos-square.com”:[“log4”],“dnaos.com”:[“log2”],“editionsconsonance.com”:[“log6”],“grosbonchant.com”:[“log11”],“hyperbase.com”:[“log0”],“jeanchatillon.com”:[“log18”],“kebek.org”:[“log13”],“knowledgearchitect.org”:[“log12”],“michelperrault.com”:[“log16”],“musicnovatory.com”:[“log8”],“musicphenomenon.com”:[“log9”],“phenomenemusique.com”:[“log10”],“prosperity-solidarity.org”:[“log14”],“stratml.hyperbase.com”:[“log1”],“telepathmedia.com”:[“log5”],“www.01communications.com”:[“log3”],“www.accordeon101.com”:[“log7”],“www.andrecusson.com”:[“log15”],“www.conradletendre.com”:[“log17”],“www.cosmos-square.com”:[“log4”],“www.dnaos.com”:[“log2”],“www.editionsconsonance.com”:[“log6”],“www.grosbonchant.com”:[“log11”],“www.hyperbase.com”:[“log0”],“www.jeanchatillon.com”:[“log18”],“www.kebek.org”:[“log13”],“www.knowledgearchitect.org”:[“log12”],“www.michelperrault.com”:[“log16”],“www.musicnovatory.com”:[“log8”],“www.musicphenomenon.com”:[“log9”],“www.phenomenemusique.com”:[“log10”],“www.prosperity-solidarity.org”:[“log14”],“www.telepathmedia.com”:[“log5”]}}}}}}
Thank you,
Regards.