reverse proxy

This commit is contained in:
Kulvir Singh
2025-10-15 13:45:16 +05:30
parent 9d3b3b7940
commit 2ff2e4ffb3
2 changed files with 31 additions and 0 deletions

15
caddy/pokemon.Caddyfile Normal file
View File

@@ -0,0 +1,15 @@
pokemon.domain-name.com {
reverse_proxy :8080 # Assuming the application is running at PORT 8080
handle_errors {
root * /var/www
rewrite * /error.html
templates
file_server
}
}
# just domain name looks much cleaner
www.pokemon.domain-name.com {
redir pokemon.domain-name.com{uri}
}