• Hello,

    I have a single site WP installation hosted at https://blog.example.com and I want to serve it with an HAProxy at https://www.example.com/blog

    The HAProxy configuration is correctly working and serving the content of the blog.

    But when I set in WordPress “Site Address (URL)” to https://blog.example.com and WordPress Address (URL) to “https://www.example.com/blog” a series of problem arises, such as the “Redirection” plugin is not working and is unable to make requests due to network error when attempting to fetch resources, “Koko Analytics” doesn’t show any more data etc.

    What would be the correct configurations (“Site Address (URL)”, “WordPress Address (URL)”, CORS etc.) when hosting wordpress on “https://blog.example.com” and displaying it with a proxy at “https://www.example.com/blog”?

    What other changes are needed to make this setup work?

    Thanks in advance for any help or suggestion.

    • This topic was modified 2 years, 7 months ago by James Huff. Reason: moved to Fixing WordPress since this is neither feedback nor a feature request
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @pinkko

    I would be glad to try and assist. If you are using HAProxy to redirect, would you not just leave the wp site URL as https://www.example.com? This is the location of your wp core files. For this URL to work you would need to have your core files installed in /public_html/blog

    I had one more thought. Does your theme allow you to customize what page to serve up for your homepage? The theme I am using there is a Customize area under Appearance/Theme. This would eliminate the need for the proxy redirect. Unless there is some other reason you are redirecting.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Subdomain to subfolder with HAProxy not working’ is closed to new replies.