SpinupWP Configuration Issue
-
Hi,
I saw the other thread a few years back. I promise I won’t be snarky about getting free help and understand you don’t know how all servers are configured. ??
I have tried adding the lines in the example like below. It tests fine with sudo nginx -t and reboots fine.
However, the plugin admin interface still reports Error codes: rewrites_not_executed
I’m not very familiar with nginx or what the nuances of how SpinupWP implements their various config files for where this should actually be added. I have tried a couple locations and it tests the config fine, but the error remains the same in the admin.
This is in the /etc/nginx/sites-available/site.com/before/spinupwp-redirects.conf file. I tried a couple other locations as well such (in the “before” and “server” folder includes) as the example below this. The global conf errored on test.
If you or anyone has any ideas it would be greatly appreciated.
Thank you!
# BEGIN SPINUPWP MANAGED BLOCK www.site.com server { ? ? ? ? listen 80; # Managed by SpinupWP ? ? ? ? listen [::]:80; # Managed by SpinupWP ? ? ? ? listen 443 ssl http2; # Managed by SpinupWP ? ? ? ? listen [::]:443 ssl http2; # Managed by SpinupWP ? ? ? ? server_name www.site.com; ? ? ? ? ssl_certificate /etc/letsencrypt/live/site.com/fullchain.pem; # Managed by SpinupWP ? ? ? ? ssl_certificate_key /etc/letsencrypt/live/site.com/privkey.pem; # Managed by SpinupWP # BEGIN Converter for Media set $ext_avif ".avif"; if ($http_accept !~* "image/avif") { ? ? set $ext_avif ""; } set $ext_webp ".webp"; if ($http_accept !~* "image/webp") { ? ? set $ext_webp ""; } location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif|webp)$ { ? ? add_header Vary Accept; ? ? expires 365d; ? ? try_files ? ? ? ? /wp-content/uploads-webpc/$path.$ext$ext_avif ? ? ? ? /wp-content/uploads-webpc/$path.$ext$ext_webp ? ? ? ? $uri =404; } # END Converter for Media ? ? ? ? include global/https.conf; ? ? ? ? return 301 https://site.com$request_uri; } # END SPINUPWP MANAGED BLOCK www.site.com
In /etc/nginx/sites-available/site.com/site.com :
fastcgi_cache_path /cache/site.com levels=1:2 keys_zone=site.com:100m inactive=7d; # Managed by> include sites-available/site.com/before/*; # Managed by SpinupWP server { listen 443 ssl http2; # Managed by SpinupWP listen [::]:443 ssl http2; # Managed by SpinupWP server_name site.com; # Managed by SpinupWP ssl_certificate /etc/letsencrypt/live/site.com/fullchain.pem; # Managed by SpinupWP ssl_certificate_key /etc/letsencrypt/live/site.com/privkey.pem; # Managed by SpinupWP root /sites/site.com/files/; index index.html index.php; access_log /sites/site.com/logs/access.log; error_log /sites/site.com/logs/error.log; # Don't allow pages to be rendered in an iframe on external domains. add_header X-Frame-Options "SAMEORIGIN"; # MIME sniffing prevention add_header X-Content-Type-Options "nosniff"; # Enable cross-site scripting filter in supported browsers. add_header X-Xss-Protection "1; mode=block"; include sites-available/site.com/server/*; # Managed by SpinupWP # BEGIN Converter for Media set $ext_avif ".avif"; if ($http_accept !~* "image/avif") { set $ext_avif ""; } set $ext_webp ".webp"; if ($http_accept !~* "image/webp") { set $ext_webp ""; } location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif|webp)$ { add_header Vary Accept; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext$ext_avif /wp-content/uploads-webpc/$path.$ext$ext_webp
- The topic ‘SpinupWP Configuration Issue’ is closed to new replies.