Hello everyone,
I have a question about the configuration of nginx. I need to make a customization for the software in my_webapp.
My YunoHost server
Hardware: VPS bought online
YunoHost version: 11.2.10.1 (stable)
I have access to my server : Through SSH and through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : NO
If yes, please explain: NO
If your request is related to an app, specify its name and version: my_webapp 1.0~ynh15
Description of my issue
I have installed ConcreteCMS (9.2.6) separately in my_webapp and would like to activate URL rewriting there. The ConcreteCMS dashboard tells me to add the following to the nginx config:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
I have tried the changes in two places, but without success. On the one hand, this was in
/etc/nginx/conf.d/my-domain.com.d/my_webapp.conf
and secondly in
/etc/nginx/conf.d/my-domain.com.d/my_webapp.d/sample.conf
In both cases, the entry seems to have no effect despite restarting nginx.
My my_webapp.conf looks like this:
#sub_path_only rewrite ^/$ // permanent;
location / {
# Path to source
alias /var/www/my_webapp/www/;
# Default indexes and catch-all
index index.html index.php;
#try_files $uri $uri/ /index.php?$args;
# Prevent useless logs
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny access to hidden files and directories
location ~ ^/(.+/|)\.(?!well-known\/) {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
include conf.d/my-domain.com.d/my_webapp__2.d/*.conf;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
Maybe there is an error somewhere?
Does anyone have an idea?
Thanks
Tinder