1. Caddy version (caddy version
):
v2.4.6
2. How I run Caddy:
Nothing special, I just ran caddy run
with a simple Caddyfile with some subdomains, no back-end.
a. System environment:
Debian 10, systemd, linux 4.19, no docker
b. Command:
caddy run
c. My complete Caddyfile or JSON config:
hecatonchire.org {
# Set this path to your site's directory.
root * /var/www/html/hecatonchire.org/dist
# Enable the static file server.
file_server
encode gzip
log {
output file /var/log/caddy/hecatonchire.org-access.log
}
}
#hecatonchire.org {
# redir https://www.hecatonchire.org{uri}
#}
doc.hecatonchire.org {
root * /var/www/html/hecatonchire.org/dist/doc
file_server
}
jartz.hecatonchire.org {
root * /var/www/html/hecatonchire.org/dist/kratch
file_server
}
http://hecatxfh3mxrk3hzzivk2satob5n2oe7avdbu5h5xupg62u2lvhmrlad.onion:1717 {
root * /var/www/html/onion
file_server
}
3. The problem I’m having:
I’m trying to have virtual hosting with my clearweb site and my .onion website but I don’t find any doc about it, except Dark Web Diaries: Detecting Co-Hosted Hidden Services without mod_status Leaks but I can’t get it work. Any idea or links ?
Tor service is enabled and running and this is my 2 uncommented lines in the /etc/tor/torrc file :
HiddenServiceDir /var/lib/tor/heca/
HiddenServicePort 80 127.0.0.1:1717
In /var/lib/tor/heca there is information like my onion url and other stuff, generated by GitHub - cathugger/mkp224o: vanity address generator for tor onion v3 (ed25519) hidden services
4. Error messages and/or full log output:
No error messages
My clearweb sites are perfectly working.
5. What I already tried:
Tried to search a lot some doc, even on this forum but get nothing.
Hoping I correctly wrote this help topic ^^’