• Resolved icedub

    (@icedub)


    Hi there! I’m having trouble with the plugin PrettyLinks Pro across all of my Kinsta hosted sites. Specifically, I have enabled the QR code feature which allows me to generate a QR code for any of the links I have shortened through PrettyLink. When I click to view the QR code I get a 404 Not Found nginx page. I’ve tested the feature on 3 of my kinsta-hosted sites and get the same error on all of them. I tested on a WP site not hosted on Kinsta and the feature worked perfectly.

    Here’s an example of a link that should be pulling up a QR code: https://www.thetinyhouse.net/p8ec/qr.png?download=774d0fb43c

    I contacted Kinsta support, and here’s what they said:

    Unfortunately, some plugins like this that use dynamically generated URLs (or plugins that require certain URLs to be handled in a special way by WordPress) often need a special Nginx configuration that handles this. It’s usually just a line or two that we can add to the Nginx configuration.
    I looked through the PrettyLinks documentation on their website, and I don’t see anything about configuring the plugin on Nginx.

    Has anyone else run into Nginx issues with Prettylinks? Any solutions found?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cartpauj

    (@cartpauj)

    If Kinsta is using nginx in a reverse proxy with Apache, they could probably fix this by doing a proxy pass on any file named qr.png so Apache can handle the file instead of nginx trying to server it directly.

    location ~* qr\.png {
      proxy_pass https://localhost:PORT_HERE; #PORT_HERE should be replaced with port Apache is listening on
    }
    Thread Starter icedub

    (@icedub)

    Kinsta doesn’t use Apache, only Nginx. Can you suggest an exact rule for Nginx based systems?

    Plugin Author cartpauj

    (@cartpauj)

    That would need to route qr.png requests through WordPress instead of trying to serve them as a static resource.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘NGINX configuration for PrettyLinks?’ is closed to new replies.