I have set up a nginx reverse proxy with Ubuntu Server 22.04 LTS. The Abacus web application should be accessible with https://abacus.contoso.com from the internet. The internal server name is srv06.
My current config looks like this (that's basically the official template from Abacus):
server {
listen 443 ssl;
server_name abacus.contoso.com;
ssl_certificate /etc/nginx/ssl_certs/cert.pem;
ssl_certificate_key /etc/nginx/ssl_certs/cert.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
root html;
index index.html index.htm;
resolver 127.0.0.53;
proxy_pass https://abacus.contoso.com:40001$uri$is_args$query_string;
proxy_redirect https://abacus.contoso.com:40001/ https://$host/;
proxy_set_header Host abacus.contoso.com;
client_max_body_size 0;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
proxy_read_timeout 90s;
send_timeout 90s;
}
}
The website is accessible and login works basically. The problem is the web application which is started over the website itself. After login an .abalink file is downloaded and started with the software AbaClient. This AbaClient tries to access the server with the URI https://abacus.contoso.com over the proxy - which is correct - but it seems that nginx or the internal server answers the request with the internal server name srv06 instead of the domain name. This is the error message I get: "GET request to the Abacus server failed (srv06)".
Is there something missing in my code? I am relatively new to nginx so I hope that somebody can help me.
Thank you!