When configuring Anaconda Client to connect to an Anaconda Repository behind a reverse proxy, the anaconda upload command is connecting to the internal hostname rather than the external configured one.
This can be resolved by changing the settings of the reverse proxy, such as Nginx or Apache:
- In Nginx, add the setting proxy_set_header Host $host; to access the internal host with the external hostname.
- In Apache, turn on the option "ProxyPreserveHost".
- Similarly, other reverse proxies have their own settings to handle hostnames correctly.