• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Problem with FPM application served by nginx

fd_paz

Basic Pleskian
Hi,
I have two websites on the same Cloud with Onyx 17.8.11. The first website I configured with "FPM application served by nginx" and it worked very well. While the second website, although I have configured with the same parameters, but still does not work. I recieve "403 Forbidden nginx" in frontend and "ERR_TOO_MANY_REDIRECTS" in backend. Also, after the unsuccessful attempt, in the WordPress backend, in the Media Library there are no more thumbnail images and even some icons like those of the Wpml are not seen correctly.
In frontend the images are correctly displayed.

I used the following code in the "Additional nginx directives" section:
if (!-e $request_filename) {
set $test P;
}
if ($uri !~ ^/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon|internal-nginx-static-location)) {
set $test "${test}C";
}
if ($test = PC) {
rewrite ^/(.*)$ /index.php?$1;
}

gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary on;

location ~* .(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
expires max; log_not_found off;
}

I would like to know how I can solve the problem with FPM and especially how to repair my Wordpress? Attached I send Screenshots.

Thank you
wpml-icons.jpg library.jpg
 
Hi,
FPM: Unfortunately, that didn't help. "Permanent SEO-safe 301 redirect from HTTP to HTTPS" was not active on my domain. I tried to turn it on and off again, but the result has not changed. I can't activate "FPM application served by nginx" in Plesk for the domain in question.

WordPress: I cloned the entire website to another domain and everything is working properly (with FastCGI application served by Apache), but the same configuration does not work with the domain I configured (problem with Media Library and some icons), so the problem is something of the server side.

Thank you

This KB article can help you with resolving this issue Website hosted on Plesk server is not accessible: Too many redirects
 
Hi,
I get "403 Forbiden" and not "404 Not Found". I had already included the php code in my settings.

Two other links are not my case.

- I was able to repair Media Library by entering this code "define('CONCATENATE_SCRIPTS', true);" in wp-config.php, but the problem with the icons still persists.
- I still can't activate FPM.

Thank you

 
Back
Top