Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Nginx and Vanilla 2
I have read and recreated the config files from - http://vanillaforums.org/discussion/9915/vanilla-on-nginx/ but have not been able to get everything working properly. Generally the index.php file loads, but any subsequent page doesn't load. It's clear this has to do with the rewrites.
Would anyone be willing to help me with this issue, maybe via PM or through the threads. I have been trying to walk through this in the #nginx IRC channel, but it's clear I need the help of someone more familiar with Vanilla.
Would anyone be willing to help me with this issue, maybe via PM or through the threads. I have been trying to walk through this in the #nginx IRC channel, but it's clear I need the help of someone more familiar with Vanilla.
0
Comments
Here is the server declaration I am using currently - http://pastie.org/872547
It passes all uri data as query strings to /forums/index.php (which is the location of my vanilla install). What is happening is that Vanilla is not parsing these queries and just displaying the landing (homepage).
Does anyone have anymore information on how Vanilla parses the URI and dispatches it? Am I breaking it because I am sending the queries with q=$query? Any help would be appreciated.
It's much easier to set up using an "virtual host" instead of trying to have running from a directory name.
In the file class.url.php the function actually uses 3 different techniques to parse the url, PATH_INFO, ORIG_PATH_INFO, and PHP_SELF. I simply added a block that used REQUEST_URI. I also had to use the SCRIPT_NAME to filter out the subfolder, in my case /forums, from the REQUEST_URI.
This might be a unique problem to me, and not help many other people, but in the class.url.php there is a TODO that says: "Test this on various platforms/browsers. Very breakable." So I thought this may be one of those cases. Again, this may not help anyone else but me, but I think it's worth to have out there, just in case.
Anyway, maybe your change will help people using apache to have vanilla2 work from within a subdirectory.