Altere a diretiva server_name no seu contêiner example.com :
server {
listen example.com:80;
client_max_body_size 1G;
server_name example.com www.example.com;
keepalive_timeout 5;
root /home/example/application/current/public;
try_files $uri/index.html $uri.html $uri @example_application;
location @example_application {
proxy_pass http://example_server;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
error_page 500 502 503 504 /500.html;
location = /500.html {
root /home/example/application/current/public;
}
}
É até possível usar curingas ou expressões regulares conforme descrito aqui .