server configuration error
-
Hello, I hope you can help as I want to use your plugin on my spinupwp servers which run nginx.
my test site is https://astrabb.mull.pro
currently I cannot get past the
server configuration error Redirects on your server are not working.
As I am fairly useless with nginx or apache for that matter I checked with spinupwp support and sent your FAQ nginx config link.
The comment was…
Based on a quick view of the link you’ve sent I would recommend adding a new .conf file to the following directory:
/etc/nginx/sites-available/{domain}/server/webp.conf (or whatever you’d like to name the file besides webp)
This will get imported into the sites server block in the main nginx conf.
They added that they do not normally support this sort of custom change so I am hoping we can arrive at another solution.
anyway I created like this
$ cat /etc/nginx/sites-available/astrabb.mull.pro/server/webp.conf location ~ /wp-content/uploads/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404; }
mime.types
$ cat /etc/nginx/mime.types /../ image/png png; image/tiff tif tiff; image/vnd.wap.wbmp wbmp; image/x-icon ico; image/x-jng jng; image/x-ms-bmp bmp; image/svg+xml svg svgz; image/webp webp;
I also tried the latest beta plugin 1.4.3 indicated in the recent post on not installing htaccess for nginx.
https://spinupwp.com/doc/changing-nginx-settings/ might give you some idea but I ran up a server purely to test your plugin – its all test nothing live
…rather than fill this forum I can send you anything you need.
thanks
The page I need help with: [log in to see the link]
- The topic ‘server configuration error’ is closed to new replies.