Hi,<br><div class="gmail_quote"><div><div><div><div><div><br></div>We are planning releasing a new web site shortly and we try to get slash-dotted.<br><br></div>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.<br>
<br></div>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?<br><br></div>
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.<br><br></div><div>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.<br>
</div><div><br>thanks<div><div><img src="https://mail.google.com/mail/u/0/images/cleardot.gif"></div></div><span><font color="#888888"><span><font color="#888888"><br>
<br></font></span></font></span></div><span><font color="#888888"><span><font color="#888888">Frédéric</font></span>
</font></span></div>