I have configured apache Proxypass as required.
I cannot understand the required settings to be made at wordpress end. I feel different kind of solutions have been provided by few. None worked for me yet. So I am not sure what steps should be adopted.
Kindly help me.
My steps followed-
1. Configure apache-
2. Add lines to wp-config.php
# ProxyPass Settings
// in some setups HTTP_X_FORWARDED_PROTO might contain
// a comma-separated list e.g. http,https
// so check for https existence
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
Kindly help, if it is correct or any other configuration required.
Hi @Debasish2018. Thanks for being part of GoDaddy Community! I think the first thing to consider would be what kind of hosting plan you have. If you're on a GoDaddy shared hosting plan, then you wouldn't be able to do this. In looking into this, I found you need to have mod_proxy available on the server in order for it to work. That wouldn't be available on our shared plans. However, if you have a VPS or Dedicated Server, then you would be able to use mod_proxy. Hope that helps.
Hi @JesseW, thank you for responding and explaining it. But I am little confused. If I opt for VPS, where do I need to have mod_proxy? My main domain has a apache proxy server which is already serving my other applications. So, all I have to do is purchase VPS plan, host the website as usual and just write the proxy rule at the server end? Or do you mean, I will require to install mod_proxy at VPS after deploying the website?
My blog should have been "unable to access wordpress site from external proxy server".
@Debasish2018. Perhaps I don't fully understand your situation. I'm definitely not a developer or server admin. However, from what I read online, in order to use proxypass as you have it in your script, the server the script is running on needs to have mod_proxy, which is another Apache module. That isn't available on our shared hosting servers. You'd be able to use that module on a VPS, but I wouldn't be able to explain the process, unfortunately.