I have set up wordpress about as well as I can. I have the site url and home configs changed appropriately, and https redirecting is working fine. The only thing that doesn't is links like https://example.com/wordpress/index.php/postname. When wordpress gets a link like this, it's doing a 301 redirect to https://192.168.122.172/wordpress/index.php/postname. This is pointing to an address only accessible to the VM host, so of course the redirect fails and the page content cannot be displayed at all.
Why is this occurring? Everywhere else, wordpress is using the appropriate https://example.com/wordpress urls, so why in this one case is it trying to redirect to 192.168.122.172?