Martin, 1. i didn't know about maintenance mode....how do you trigger it? i suspect there is a way to route it to use a particular set of view(s)....
2. there is a request.is_local i believe that is set if the request is from the same server as the process serving the request. that should be what you want (once you get the request past the maintenance mode message. cfh On Saturday, November 24, 2012 7:35:27 AM UTC-8, mweissen wrote: > > Hi, > > I know there is a maintenance mode, but I need a liitle bit more: > > (1) If the maintenance mode is switched on the user sees > Temporarily down for maintenance > > But it would be nice to have a page with the same layout as the original > page. > > > (2) If the maintenance mode is switched on it is possible to use web2py > with the local address 127.0.0.1 > > My web2py server has two lan-cards: one for the external ip-address, one > for the lan (192.168....). > Is there a way > > - to show the maintenance message for visitors using lan card 1 (with > the external ip address) and > - to work with the application using lan card 2 (with an internal ip > address)? > > > Regards Martin > > --