Ubuntu 20.04
Wireguard in conncting the two servers
nginx as main and caddy als RP
b. Command:
I run caddy as systemd daemon on Unbuntu
d. My complete Caddyfile or JSON config:
test.xyz {
# Set this path to your site's directory.
#root * /usr/share/caddy
# Enable the static file server.
#file_server
# Another common task is to set up a reverse proxy:
reverse_proxy http://10.0.0.2:9000
#header Strict-Transport-Security "max-age=15552000;"
#header X-Real-IP {http.request.remote}
#header X-Forwarded-For {http.request.remote}
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
xenforo has an api and when I have no reverse prox ist will show
{
“errors”: [
{
“code”: “no_api_key_in_request”,
“message”: “Die Anforderung enthielt keinen API-Schl\u00fcssel.”,
“params”: []
}
]
}
and with caddy it comes
Request Page Not Found
This is a customized error page for missing pages.