Forum

WBB 4 config abomination

chopsticks
27 June 2014, 16:31
Hello,

I'm currently trying to use Woltlab Burning Board 4 on hiawatha,
having some troubles because hiawatha doesn't quite know how to handle these rather weird things.


The old config snippets which were needed for the board to work:

webserver.cfg
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}


fastcgi_params
[...]
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;


So i need to get this fastcgi_split_path_info ^(.+?\.php)(/.*)$;, path_info and path_translated into the hiawatha php5-fpm combo.
It should do some magic to the index.php when going to urls like http://website.net/index.php/User/1-Username/ instead of looking for the folder /var/www/website/index.php/User/1-Username/.

I dislike wbb4 because of this weird path info stuff, but people want it.

Would be eternally grateful if you got any tips + it would be a nice addition to your url rewrites list .

Hiawatha version: v9.6
Operating System: Debian sid kernel 3.14.4
chopsticks
27 June 2014, 22:45
Already fixed it, sry for being stupid.

Instead of doing the massive amount of config lines above with other webservers, on hiawatha, only
EnablePathInfo = yes
is needed.

Thats quite impressive, thanks for this webserver .
Hugo Leisink
28 June 2014, 13:13
Good to hear it works. And you're welcome!
This topic has been closed.