Forum Discussion

gorugo13_132574's avatar
gorugo13_132574
Icon for Nimbostratus rankNimbostratus
Aug 28, 2013

日時を指定し、sorryページを表示させ、指定時間後に戻すRules(Specify the date and time, to display the sorry page, Rules to return after a specified time)

教えて下さい。日付と時間を指定し、指定した期間のみプールを停止し、sorryページを表示するiRulesを記述したい。どう記述すれはいいですか?

 

Please let me know.

 

I want to describe the iRules to stop the pool only during the period specify the date and time you specify, to display the sorry page.

 

What I should write?

 

3 Replies

  • is it same as this thread?

     

    https://devcentral.f5.com/questions/2sorryyou-want-to-set-the-start-and-stop-of-the-sorry-page-across-the-day-2-days-or-more

     

  • Similar but different. It does not describe the sorry page. I want to write a sorry page in iRules.

     

  • Shun_Takahashi1's avatar
    Shun_Takahashi1
    Historic F5 Account

    Basically, you don't need to disable pool but just iRule to generate response using [HTTP::respend] command within a specific range of time.

     

    https://devcentral.f5.com/wiki/irules.HTTP__respond.ashx

     

    If you need a "rich" sorry page, you can upload HTML, CSS, JS and PNG to BIGIP as iFile objects and call them from iRule.

     

    https://devcentral.f5.com/wiki/irules.iFile.ashx