Cheap SharePoint -> Wordpress fail-over help request
SplitIce
mat999 at gmail.com
Tue Oct 11 09:50:56 UTC 2011
Try files refers to local files so that wont work. You need a failover in
the upstream.
On Tue, Oct 11, 2011 at 8:39 PM, keith <keith at scott-land.net> wrote:
> We have nginx setup as a reverse proxy and on one of the backend servers we
> have a Sharepoint website that we want to failover to a Wordpress website
> hosted on another server if there's a problem with Sharepoint website. I've
> googled and red through books etc but can't we an example for this. I think
> i need "try_files" and some type of error code checking but havent been able
> to figure it out. Could someone advice ? Below is the type of thing that I
> think I am after.
>
> Thanks for looking.
> Keith
>
> upstream primaryserver { server 10.1.1.1:80; }
> upstream secondaryserver { server 10.1.1.2:80; }
>
> server
> {
> listen 80;
> server_name _;
> server_name_in_redirect off;
>
> location /
> {
> try_files @sharepoint @wordpress;
> }
> location @sharepoint
> {
> proxy_pass http://primaryserver;
> proxy_set_header Host $host;
> proxy_connect_timeout 3;
> proxy_next_upstream error timeout;
> }
>
> location @wordpress
> {
> proxy_pass http://secondaryserver;
> proxy_set_header Host $host;
> proxy_connect_timeout 3;
> proxy_next_upstream error timeout;
> }
>
> }
>
> ______________________________**_________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/**mailman/listinfo/nginx<http://mailman.nginx.org/mailman/listinfo/nginx>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20111011/25648cf5/attachment.html>
More information about the nginx
mailing list