"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Run TG behind Apache, with Apache serving up everything from the > /static directory. Problem is, how do you restrict access to /static > files, such that only logged-in users can see them?
You'd have to write code to do the checkings that the identity module does. This would be called as a handler for Apache. > Actually, I'll make the problem more generic. Just say you're running > TG only (no Apache). How then would you restrict access to /static > files? Enable identity for static dirs. Something like: ================================================================================ [/static] identity.on = True static_filter.on = True static_filter.dir = "%(top_level_dir)s/static" ================================================================================ Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

