Forum Discussion
toki_132571
Nimbostratus
Aug 28, 20132日以上の日をまたいでsorryページの起動・停止を設定したい(You want to set the start and stop of the sorry page across the Day: 2 days or more)
題名にある設定を行いたいと考えていますが、以下の設定でできません。何が駄目なのか解る方がいらっしゃいましたら宜しくお願いします。
私たちは、[ごめん·ページ]を設定するには、2日以上の日付ではなく、次のような構成にしたいと思います。 私は、あなたができるようにしたい、それをどこに固定するのですか?
時RULE_INIT {セット:: StartTim...
nitass_89166
Noctilucent
Aug 28, 2013one dollar sign is missing.
if {$now > $static::start and $now < $static::end} {
- toki_132571Aug 29, 2013
Nimbostratus
ありがとうございます。エラーは解消されました。 ただ、どうしてもpoolを指定しないでやるやり方はありますか? 現状は以下の様になっています。 でもそのままメンテナンスページを表示させたいです。 when RULE_INIT { set static::start_date "2013-08-29 14:40" set static::end_date "2013-08-29 14:50" set static::start [clock scan $static::start_date] set static::end [clock scan $static::end_date] } when CLIENT_ACCEPTED { Get the current time in seconds since the Unix epoch of 0-0-1970 set now [clock seconds] Check if the current time is between the start and end times if {$now > $static::start and $now < $static::end} {pool global-http} } when HTTP_REQUEST { HTTP::respond 200 content "メンテナンス中" } - toki_132571Aug 29, 2013
Nimbostratus
ありがとうございました。 なんとかやりたい事が出来ました。
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects