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
[SOLUTION POSTED // unconfirmed] Parameter integration vor Nginx
Re: Parameter integration vor Nginx
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:
Without the above, WonderCMS will not create clean URLs and database.js will be accessable, which is not a good security practice.
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;
}
}