Support » Plugin: Uploads by Proxy » Not Working on Staging Server – NginX Issues?

  • Resolved lampramirez


    Love, love, love this plugin. It’s so useful for my day to day when developing locally.

    I am, however, having an issue getting it to work on my staging environment using a subdomain – separate machine/IP from production. I’ve set my wp-config.php with the following constants.

    define(‘WP_HOME’, ‘’);
    define(‘WP_SITEURL’, ‘’);
    define(‘UBP_SITEURL’, ‘’);
    define(‘UBP_LIVE_DOMAIN’, ‘’);
    define(‘UBP_IS_LOCAL’, true );

    Seems like the 404_template hook isn’t even firing. I’m running NginX, APC, Varnish and then also running Cloudflare on the production server (AWS Ubuntu – elastic IPs).

    Any help is greatly appreciated as I would love to be able to use this on staging.

Viewing 1 replies (of 1 total)
  • Plugin Author PD Clark


    Hmm… Sorry I’m seeing this so late! I don’t see any issues in your configuration, and as far as I know, there aren’t any conflicts with nginx.

    If the 404 template isn’t firing, my first guess would be to check that permalinks are enabled (and that nginx rewrites are set up accordingly).

    Cloudflare shouldn’t be an issue if it’s set up on production only. It would block the 404 if on staging.

    APC could also block the 404 if there’s a page cache occuring… Make sure no caching plugins are enabled on staging, and if that doesn’t lead anywhere, try flushing the WordPress object cache. WP-CLI would be wp cache flush. PHP would be wp_cache_flush();

Viewing 1 replies (of 1 total)
  • The topic ‘Not Working on Staging Server – NginX Issues?’ is closed to new replies.