Make WonderCMS work with NGINX - one file change required

Post Reply
wiz
Site Admin
Posts: 195
Joined: Sat Oct 30, 2010 12:23 am

Make WonderCMS work with NGINX - one file change required

Post by wiz » Mon Jan 02, 2017 10:15 pm

Insert the following code into your NGINX server config.

Code: Select all

location ~ database.js {
	return 403;
}

autoindex off;

location / {
	if (!-e $request_filename) {
		rewrite ^(.+)$ /index.php?page=$1 break;
	}
}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest