0

Getting Vanilla Forums to Work on Nginx

Vanilla is a great piece of software. Let's get it working with Nginx real quick

    # Rewrite to prettify Vanilla forum URLs
	location /forum {
	    try_files $uri $uri/ @forum;
	}
	
	location @forum {
	    rewrite ^/forum(.+)$ /forum/index.php?p=$1 last;
	}

It's that simple. Add that to your server block in Nginx, and change "forum" to where your Vanilla Forum is installed.

$ sudo service nginx reload

Don't forget to open up conf/config.php and add the following, if you didn't add the Nginx rules prior to installing the forum:

$Configuration['Garden']['RewriteUrls'] = TRUE;

 





There are no comments to display.