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
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