Page 1 of 1

[SOLUTION POSTED // unconfirmed] Parameter integration vor Nginx

Posted: Sun Nov 26, 2017 9:42 am
by michelw
Hello,
Can we integrate the nginx configuration into the wondercms folder? By adding a file for example. To not touch the nginx server.
Finally is it possible that for the next version this setting is saidrectemment integrated wondercms
Thank you

Re: Parameter integration vor Nginx

Posted: Sun Nov 26, 2017 11:21 am
by wiz
Unfortunately, I am not aware of a way to install WonderCMS on NGINX without editing the nginx.conf.

To make WonderCMS work with NGINX, pasting the following into the nginx.conf file:

Code: Select all

location ~ database.js {
	return 403;
}

autoindex off;

location / {
	if (!-e $request_filename) {
		rewrite ^/(.+)$ /index.php?page=$1 last;
	}
}
Without the above, WonderCMS will not create clean URLs and database.js will be accessable, which is not a good security practice.