reverse proxy
This commit is contained in:
15
caddy/pokemon.Caddyfile
Normal file
15
caddy/pokemon.Caddyfile
Normal 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}
|
||||
}
|
||||
Reference in New Issue
Block a user