Welcome! Log In Create A New Profile

Advanced

Serve different static page depending of the server load

Frédéric Bastien
February 22, 2013 03:24PM
Hi,

We are planning releasing a new web site shortly and we try to get
slash-dotted.

Our website is hosted with nginx, but I currently set the images of the
main page on amazon S3 as it won't be able to serve them if we get
slash-dotted as planned.

To lower our cost, is there a way to tell nginx to serve for index.html
another file like index_local.html file when the load of the server is low
and to serve index_aws.html when the load is high?

index_local.html would contain URL for images and an applet to the same
nginx file server but index_aws.html will set URL for them to S3.

If that is not possible, is there another way to do that? I don't want to
manually do the switch as we never know when the crowd come.

thanks


Frédéric
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Serve different static page depending of the server load

Frédéric Bastien February 22, 2013 03:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready