1. The problem I’m having:
I can get a config file setup to run one https site in my local domain but not able to configure a file to run two or more.
This works (one website) Caddyfile:
https://192.168.0.23 {
root * c:\dev\vue-quasar-app\Frontend\dist
file_server
tls internal
}
This does not work (two websites) Caddyfile:
https://192.168.0.23 {
tls internal
@pwa path /pwa/*
handle @pwa {
root * C:\dev\QuasarCliVite\dist\pwa
file_server
}
@quasarapp path /quasarapp
handle @quasarapp {
root * c:\dev\vue-quasar-app\Frontend\dist
file_server
}
}
2. Error messages and/or full log output:
https://192.168.0.23/quasarapp
Error: 404 cannot be found, does not resolve to the website.
3. Caddy version:
4. How I installed and ran Caddy:
I just copied the exe to c:\dev\caddy sub dir. Then run via windows cmd prompt:
a. System environment:
running windows 11 Version 24H2
b. Command:
C:\dev\caddy>caddy_windows_amd64 run --config Caddyfile
c. Service/unit/compose file:
N/A
d. My complete Caddy config:
https://192.168.0.231 {
tls internal
@pwa path /pwa/*
handle @pwa {
root * C:\dev\QuasarCliVite\dist\pwa
file_server
}
@quasarapp path /quasarapp
handle @quasarapp {
root * c:\dev\vue-quasar-app\Frontend\dist
file_server
}
}
5. Links to relevant resources:
This does work for a caddy file. However, it’s only one web site. I would like to run multiple.
https://192.168.0.231 {
root * c:\dev\vue-quasar-app\Frontend\dist
file_server
tls internal
}