Default Server Configuration
Configure a default server in Nginx-Proxy to handle requests for unregistered server names.
Default Server
When request comes for a server name that is not registered in nginx-proxy
, It responds with 503 by default.
If you want the requested to be passed to a container instead, when setting up the container you can add PROXY_DEFAULT_SERVER=true
environment along with VIRTUAL_HOST
.
This much is sufficient for http connections, but for https connections, you might want to setup wildcard certificates so that your users dont get invalid ssl certificate errors.