RE: [Zope-dev] SiteAccess improvements
One thing that might be nice - and something I was planning on working on relatively soon was a rewrite rule wizard to extend VHM to auto-write rewrite rules for use with a front-end Apache/Squid; this would support mod_rewrite and Pyredir (a python-based Squid redirector). The idea would be that the rules could be copied by a site admin from their browser viewing a VHM management page and pasted into Apache's httpd.conf or a Squid redirector's conf file. I don't have code yet, but eventually plan to do this; would this kind of modification be useful to anybody? In the long run, if a "registry" of virtual host monsters is in the control panel, and could be queried via XML-RPC, it seems an Apache module or Squid redirector could be built or modified to make those servers use that data automatically! I would be tempted, for example, to hack Pyredir (since I primarily use Squid), to use its conf file for most of its rewrite rules, but query Zope via XML-RPC for supplementary rules associated with VHM instances as well on initial load or SIGHUP or Pyredir. Sean -----Original Message----- From: emf [mailto:mindlace@imeme.net] Sent: Saturday, November 24, 2001 12:13 AM To: zope-dev@zope.org; evan@zope.com Subject: [Zope-dev] SiteAccess improvements Hello, There's a very nearly "orphaned proposal": http://dev.zope.org/Wikis/DevSite/Proposals/SiteAccessUsuabilityImprovements iMeme has already done some work towards these goals with "SiteAccessEnhanced": http://www.zope.org/Members/sfm/SiteAccessEnhanced I am taking over this effort, and I have some near-term "goals outlined": http://dev.zope.org/Wikis/DevSite/Proposals/SiteAccessProposedSolutions I intend to deliver the VHM improvements before the AccessRule improvements. Please give feedback on this proposal, and let me know what I need to do to move this into the project phase. Thanks, -- ethan mindlace fremen | iMeme - The most full featured Zope Host http://mindlace.net | Root, ZEO, MySQL, Mailman, Unlimited Domains iMeme Partner | http://iMeme.net "It is our desire to remain what we are that limits us. -- Project 2501" _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
sean.upton@uniontrib.com wrote:
One thing that might be nice - and something I was planning on working on relatively soon was a rewrite rule wizard to extend VHM to auto-write rewrite rules for use with a front-end Apache/Squid; this would support mod_rewrite and Pyredir (a python-based Squid redirector). The idea would be that the rules could be copied by a site admin from their browser viewing a VHM management page and pasted into Apache's httpd.conf or a Squid redirector's conf file.
I actually want to see this happen as well! I was thinking I would ask for an existing path to a configuration file, read that, and dump a diff in the Zope dir, but your approach works too.
In the long run, if a "registry" of virtual host monsters is in the control panel,
Out of curiosity, why do you want multiple VHM's?
and could be queried via XML-RPC, it seems an Apache module or Squid redirector could be built or modified to make those servers use that data automatically!
This sounds really cool. With both cases, I think one issue is how many configuration possibilities there are. For example, with iMeme, our apache says: <VirtualHost *> ... RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/ $1 [L,P] ... </VirtualHost> Which works for all the port 80 virtualhosting you want to do, so the rest can stay in zope. Now, if you have specific, per-site apache configuration needs past that point, you have to be smarter. This is why i was thinking sniff the original config/supply a diff so that you could do something intelligent- i.e. put the right rewrite rules in the right VirtualHost directives - but I imagine there's limits to how flexibly you could do things. -- ethan mindlace fremen | iMeme - The most full featured Zope Host http://mindlace.net | Root, ZEO, MySQL, Mailman, Unlimited Domains iMeme Partner | http://iMeme.net "It is our desire to remain what we are that limits us. -- Project 2501"
participants (2)
-
emf -
sean.upton@uniontrib.com