location / {
index index.php;
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(forum/|cms/|wcf/|calendar/|filebase/|blog/|gallery/)?([^.]+)$ /$1index.php?$2 last;
}
Work fine. Does Plesk not can Work with location under additional ngingx settings? Is this a problem or can i take this code?index index.php;
try_files $uri $uri/ @rewrite;
rewrite ^/(forum/|cms/|wcf/|calendar/|filebase/|blog/|gallery/)?([^.]+)$ /$1index.php?$2 last;
Sorry, but you miss the fact, that you are trying to use a second "location /" - directive, which is simply not possible with nginx at all, as you already noticed at your error messages. This is not a Plesk - issue or bug, it's just something that isn't possible with nginx.Does Plesk not can Work with location under additional ngingx settings?
Well, if you leave out the "location" - part, then the following directives are not set for a specific folder, but for all content in your "document root" of the (sub)domain. You might experience further issues/errors/problems, when you use other additional directives as well.Is this a problem or can i take this code?
Ok thank you. I have think it was a plesk problem, because other user don't have problems with the defined rules. I will ask thereHi Koda,
your issue is related to Woltlab settings for your SEO - URLs. Pls. consider to contact THEIR support ( or their community forum ), because at the Plesk Community Forum we try to handle Plesk components and extensions and not any other third party components.