1. Caddy version (caddy version
):
Caddy 2.0
2. How I run Caddy:
Usually by starting the service file I made for systemctl, but in this case for testing purposes I directly use caddy command.
a. System environment:
Ubuntu 18.10 using systemctl
b. Command:
caddy run Caddyfile
d. My complete Caddyfile or JSON config:
www.trior.net trior.net {
file_server
root * /home/caddy-webserver/trior.net
log /home/caddy-webserver/logs/trior.net.log
}
http://www.apotheosis.trior.net:80 http://apotheosis.trior.net:80 {
file_server
root * /home/caddy-webserver/apotheosis.trior.net
log /home/caddy-webserver/logs/apotheosis.trior.net.log
}
www.plexstats.trior.net plexstats.trior.net {
file_server
reverse_proxy localhost:15003
}
www.pyload.trior.net pyload.trior.net {
file_server
reverse_proxy localhost:8001
}
www.plex.trior.net plex.trior.net {
file_server
reverse_proxy localhost:32400
}
www.alandarev.com alandarev.com {
file_server
root * /home/alandarev/sites/alandarev.com/www
log /home/caddy-webserver/logs/alandarev.com.log
}
githubhook.trior.net {
file_server
reverse_proxy localhost:3456
}
3. The problem I’m having:
Everything works however what I really want to do is have this one site (www.apotheosis.trior.net)
served only as http and possibly even without any SSL the reason for this is that I want to host a garrysmod loading screen on my webserver, but garrysmod uses a old browser that has issues with redirects or https I’m not exactly sure so I want to try it without any security on that one site.
5. What I already tried:
Not much, I did search the forum here and found some solution on how to do it with json but I gotta tell you guys I’m not an expert in any of this, I’m just now learning how to use caddy v2 and I loved caddy v1 because it was so simple.