Installation question with nginx proxy_pass
Hi there, I looked around and didn't see any answers to my question.
Basically, the type of installation I am working on is as follows. We have our web servers (webA) for our main site, and a separate web server (webB) for just the forums. The path /forums does a reverse proxy to the upstream webserver where the forums live. So, www.example.com goes to webA. Whenever a request comes in for www.example.com/forums, it forwards the request to webB. The requests are getting passed up and handed back down fine, however, the URLs generated by vanilla is relative to the root path of / (so /js which hits webA's js directory in the web root instead of /forums/js to get to the /js directory on webB's webroot). Looking through the config, there is the WebRoot and StripWebRoot (not totally sure what this second one is) settings, but neither are seeming to alter the URLs being generated.
So, basically, is this something that is workable? Or do I have to do an install on webB as though it was in a subdirectory of /forums as well even though there isn't anything above that on the webB web server? Is there any documentation on how to get Vanilla forums really working in a reverse proxy situation?
Answers
the two parameters are used here
https://github.com/vanilla/vanilla/blob/2.1/library/core/class.request.php#L337
https://github.com/vanilla/vanilla/blob/2.1/library/core/class.request.php#L905
an example of usage.
http://vanillaforums.org/discussion/comment/202822/#Comment_202822
as far as other questions someone else could better answer than me.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Frankly, Based on code in class.request.php, from what I see StripWebRoot as a True or False type of config, rather than a setting with string info.
another example
http://vanillaforums.org/discussion/comment/184041/#Comment_184041
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
PHP_SELF
is most likely not being correctly populated. This can be a configuration problem with with your nginx setupE.g.
http://kbeezie.com/php-self-path-nginx/
grep is your friend.