> A bit of an ugly hack (and probably not useful), but what about an
> errordocument that uses SSI to include your contents?

Mmm.  I don't want to go there.

> Would you be able to share the nginx config to achieve what you're
> looking for, as a reference point?

Sure.  Condensing it, the basic idea is this;

        location / {
                uwsgi_pass cms;
                include uwsgi_params;
                uwsgi_intercept_errors on;
                error_page 404 = @fallback;
        }
        location @fallback {
                try_files $uri @static;
        }
        location @static {
                proxy_pass              http://static/$request_uri;
        }

John

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to