Too Many Redirect
-
Hello,
It don’t work on my Yunohost Nginx server. At the browser side I got too many redirects.
Here is wordpress.conflocation / { # Path to source root /var/www/wordpress; index index.php; try_files $uri $uri/ /index.php?$args; client_max_body_size 30m; location ~ \.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php8.0-fpm-wordpress.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } } location ~* \.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ogg|ogv|svgz|eot|otf|mp4|rss|atom|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ { root /var/www/wordpress; expires max; add_header Cache-Control "public, no-transform"; access_log off; log_not_found off; } location = /robots.txt { root /var/www/wordpress; access_log off; log_not_found off; } location ~ /\. { deny all; access_log off; log_not_found off; }
Here is webpavif.conf
location ~* wp\-content/(?!cache/fastware\-webpavif).+\.(jpe?g|png|gif|bmp|webp)$ { rewrite /wp\-content/(.+)$ /wp-content/cache/fastware-webpavif/$1; } location ~* cache/fastware\-webpavif.+\.(jpe?g|png|gif|bmp)$ { add_header Vary Accept; try_files $uri.pref$webp $uri.pref$avif $uri$webp $uri$avif $uri /?fw-webp-avif-ondemand=all; } location ~* cache/fastware\-webpavif.+\.webp$ { add_header Vary Accept; try_files $uri$png /?fw-webp-avif-ondemand=png; }
2023/05/12 13:39:27 [error] 38559#38559: *1164 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 79.93.117.35, server: *****, request: "GET /wp-content/uploads/2022/11/rhum-apprecie-compress.jpg HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm-wordpress.sock:", host: "*****", referrer: "*****"
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Too Many Redirect’ is closed to new replies.