I have no idea with HAProxy - I've never used it... But a quick google suggests that using default WordPress config may cause issues behind a reverse proxy.
Following that, my guess is that you might want to try explicitly setting WP_HOME & WP_SITEURL in your WordPress config (/var/www/wordpress/wp-config.php). I suggest setting them to something like this:
I have no idea with HAProxy - I've never used it...
I have no idea with HAProxy - I've never used it... But a quick google suggests that using default WordPress config may cause issues behind a reverse proxy.
Following that, my guess is that you might want to try explicitly setting WP_HOME & WP_SITEURL in your WordPress config (/var/www/wordpress/wp-config.php). I suggest setting them to something like this:
Where "https://www.example.com/subdirectory" is the exact path that you wish to server WordPress from. E.g. https://www.my-domain.com/wp
You'll need to restart Apache after that:
Hopefully that gets you going, if not, please post back. Ideally please share your Apache error log (/var/log/apache2/error.log).