[SOLUTION POSTED // unconfirmed] Parameter integration vor Nginx

Post Reply
michelw
Posts: 7
Joined: Tue Oct 31, 2017 5:57 pm

[SOLUTION POSTED // unconfirmed] Parameter integration vor Nginx

Post 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
User avatar
wiz
Admin
Posts: 576
Joined: Sat Oct 30, 2010 12:23 am

Re: Parameter integration vor Nginx

Post 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.
Post Reply