Re: configuring a proxy fallback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux