Jump to content

Problems with reverse proxy


Mikel
 Share

Recommended Posts

Hi, everybody!

For our recent project we set up PW on our development server and everything worked as it should. Now we duplicated the project to the production environment, a server hosted by our client. Since then we get some strange error messages:

When logged in as superuser:

post-1231-0-42991200-1432127867_thumb.pn

When viewing Upgrade page:

post-1231-0-51312900-1432127882_thumb.pn

When trying to load a module:

post-1231-0-88654200-1432127883_thumb.pn

(The german sentence means "Error getting data from web service URL")

Anything else works, though.

Our client uses a reverse proxy and claims that everything is working. But I don't think this is a PW issue, since an identical version of this project on a different server works ...

Has anybody already experienced similar problems?

Cheers, Mike

Link to comment
Share on other sites

Do a full install of processwire on the hosting server, during the setup processwire informs about necessities

and errors. Just check how the setup ends and see if this leads you to an answer. Did you check the .htaccess

and config.php files already ?

Link to comment
Share on other sites

The first one is simple. The host mentioned by the error message is the host you're accessing the installtion with, therefore this host needs to be set as one of $config->httpHosts, like it's described there. The other ones let it seem like your processwire installation has no access to the internet. 

Link to comment
Share on other sites

Do a full install of processwire on the hosting server, during the setup processwire informs about necessities

and errors. Just check how the setup ends and see if this leads you to an answer. Did you check the .htaccess

and config.php files already ?

Did a full install and PW did not complain about anything, .htaccess and config look fine... 

Link to comment
Share on other sites

The first one is simple. The host mentioned by the error message is the host you're accessing the installtion with, therefore this host needs to be set as one of $config->httpHosts, like it's described there. The other ones let it seem like your processwire installation has no access to the internet. 

Thats what I thought first, too. But it appears that writing the proxy url (voebb-web2.voebb.local) in the $config->httpHosts array breaks the "view page" links. They link to the proxy url and we get a 404. Thats why we removed the proxy-url from the $config->httpHosts array again.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...