adding a TIME variable?
delta.yeh at gmail.com
Fri Jul 25 06:19:23 MSD 2008
And an idea, maybe you can add a time based access control in nginx rather
for example , some admin pages can only access at work time.
2008/7/25 pf shineyear <shinepf at gmail.com>:
> u can use a function "ngx_time()" it return a time_t int about seconds
> since 1/1/1970
> On Fri, Jul 25, 2008 at 3:59 AM, Mike Harding <mvh at ix.netcom.com> wrote:
> > I am porting some apache rewrite rules that use the TIME variable (just
> > unix epoch, seconds since 1/1/1970). What would be my best option for
> > nginx?
> > I could
> > - modify the code to provide a $time variable
> > - use fgci
> > - use the embedded perl option
> > - proxy to an apache server
> > any other options? How much work would be involved with the first
> > option? I am an accomplished C programmer and could provide patches
> > back to the project...
> > - Mike H.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx