Re: ProxyPass based on time of day

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 03.12.2014 00:11, congo a écrit :
Hello chiefs,

i recall reading about httpd proxy setup where a vhost would use one proxypass before noon and another after noon (for instance). i.e. proxypassing based on what hour it is of the day... however i cant recall where i saw this config, and maybe theres a small chance that its something different like mod_rewrite that does this.. I have tried to look around for some time now, but its pointless to search for proxypass time or similar...

anyone with such experience ?


br
congoo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



Dear,

May be have a look at the RewriteRule [P] flag and RewriteCond with %{TIME_(HOUR|MIN|etc)}.
For example:

RewriteEngine On
RewriteCond %{TIME_HOUR} <12
RewriteRule (.*) http://url/$1 [P]

Hope it helps
BR
z

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux