{ "info": { "author": "Simples Consultoria", "author_email": "products@simplesconsultoria.com.br", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Framework :: Zope2", "Framework :: Zope3", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. contents:: Table of Contents\n :depth: 2\n\nCDN Support for Plone: Altenate Hostname\n*******************************************\n\nOverview\n========\nThis package provides support for an alternate hostname CDN config for \nPlone sites.\n\nThis provider allows you to designate an alternate hostname to serve skin \nresources for your portal.\n \nA very basic example would be to add 127.0.0.1 as an alternate hostname -- \nusing same port number as your zope instance -- during development, thus enabling \nresources to be downloaded from 127.0.0.1 while content will be served from \nlocalhost.\n\n\nRequirements\n=============\n\n * Plone 3.3.x (http://plone.org/products/plone)\n * Plone 4.0.x (http://plone.org/products/plone)\n * collective.cdn.core (http://pypi.python.org/pypi/collective.cdn.core)\n \nInstallation\n=============\n \nTo enable this product,on a buildout based installation:\n\n 1. Edit your buildout.cfg and add ``collective.cdn.alternatehostname``\n to the list of eggs to install ::\n\n [buildout]\n ...\n eggs = \n collective.cdn.alternatehostname\n \n\nIf another package depends on the collective.cdn.alternatehostname egg or \nincludes its zcml directly you do not need to specify anything in the \nbuildout configuration: buildout will detect this automatically.\n\nAfter updating the configuration you need to run the ''bin/buildout'',\nwhich will take care of updating your system.\n\nGo to the 'Site Setup' page in the Plone interface and click on the\n'Add/Remove Products' link.\n\nChoose the CDN Support for Plone (check its checkbox) and click the 'Install' button.\n\nUninstall -- This can be done from the same management screen, but only\nif you installed it from the quick installer.\n\nNote: You may have to empty your browser cache and save your resource \nregistries in order to see the effects of the product installation.\n\nUsage\n============\n\nCDN settings\n----------------\nAfter installing this package, go to the 'Site Setup' page in the \nPlone interface and click on the 'CDN Configuration' link.\n\nIn this page you can choose which registries will use the CDN settings \nby clicking the respective checkboxes.\n\nChoose the AlternateHostname provider, add a new hostname, port number \nand additional path --if needed -- then save the settings.\n\nHow it works\n--------------\nUsing the hostname provided in the settings page, we simply replace our \nPlone site root's url with the provided information.\n\nFor example, using cache.simplesconsultoria.com.br as the alternate hostname \nwith port number 80 and an empty path, the link to \nsimplesconsultoria_site-cachekey0549.css file would change from::\n\n http://www.simplesconsultoria.com.br/portal_css/beyondskins_simples/simplesconsultoria_site-cachekey0549.css\n\nto::\n\t\n http://cache.simplesconsultoria.com.br/portal_css/beyondskins_simples/simplesconsultoria_site-cachekey0549.css\n\nIf we inform a port number different from 80, it will be appended to the \nhostname, so with a port number of 8080, the above example would \nreturn::\n\n http://cache.simplesconsultoria.com.br:8080/portal_css/beyondskins_simples/simplesconsultoria_site-cachekey0549.css\n\nThe same will happen if we inform a path in our settings. Using 'simples' as \nour path, the first example would return::\n\n http://cache.simplesconsultoria.com.br/simples/portal_css/beyondskins_simples/simplesconsultoria_site-cachekey0549.css\n\nAdvanced Usage\n================\n\nUsing a different path offers you the possibility of creating a simple \ncaching/cdn server for multiple sites. As an example we will consider we \nhave two Plone sites, www.simplesconsultoria.com.br and www.simplesnet.com.br, \nand we setup cache.simples.srv.br as an alternate hostname in both Plone sites.\n\nIn order to differentiate one site from the other we will set different paths\nin each of them:\n\n * simples in www.simplesconsultoria.com.br\n * simplesnet in www.simplesnet.com.br\n\nSo each site will have the following settings:\n\n * www.simplesconsultoria.com.br\n * Provider: AlternateHostname\n * Hostname: cache.simples.srv.br\n * Port: 80\n * Path: simples\n \n * www.simplesnet.com.br\n * Provider: AlternateHostname\n * Hostname: cache.simples.srv.br\n * Port: 80\n * Path: simplesnet \n\nAnd a link to a file portal_css/beyondskins_simples/simplesconsultoria_site-cachekey0549.css,\nwould return for www.simplesconsultoria.com.br::\n\n\thttp://cache.simples.srv.br/simples/portal_css/beyondskins_simples/simplesconsultoria_site-cachekey0549.css\n\t\nAnd for www.simplesnet.com.br::\n\n\thttp://cache.simples.srv.br/simplesnet/portal_css/beyondskins_simples/simplesconsultoria_site-cachekey0549.css\n\nSo, our frontend server must rewrite calls to **simples/** to \nwww.simplesconsultoria.com.br server and calls to **simplesnet/** to the \nwww.simplesnet.com.br server.\n\nSponsoring\n===========\n\nDevelopment of this product was sponsored by `Simples Consultoria \n`_.\n\n\nCredits\n========\n\n * Simples Consultoria (products at simplesconsultoria dot com dot br) - \n Implementation\n\nChangelog\n=========\n\n0.5 (2011-02-21)\n----------------\n\n* Implementation of an alternate hostname provider [erico_andrei]\n\n* Initial release [erico_andrei]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.simplesconsultoria.com.br/", "keywords": "plone plone4 cdn content simplesconsultoria", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "collective.cdn.alternatehostname", "package_url": "https://pypi.org/project/collective.cdn.alternatehostname/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.cdn.alternatehostname/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.simplesconsultoria.com.br/" }, "release_url": "https://pypi.org/project/collective.cdn.alternatehostname/0.5/", "requires_dist": null, "requires_python": null, "summary": "Alternate hostname CDN support for Plone", "version": "0.5" }, "last_serial": 787687, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "3ed687d7c33d2f753f7dd17a2e782113", "sha256": "d56feedae0c52c230396d5b6d7894d9ffd93a295116d4085df216d9bcef4ef63" }, "downloads": -1, "filename": "collective.cdn.alternatehostname-0.5.zip", "has_sig": false, "md5_digest": "3ed687d7c33d2f753f7dd17a2e782113", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24570, "upload_time": "2011-02-21T20:58:26", "url": "https://files.pythonhosted.org/packages/ea/ff/ba7ad185ff776774147bc57765a0792303647bc819a6fe4bacba46f5d0c9/collective.cdn.alternatehostname-0.5.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3ed687d7c33d2f753f7dd17a2e782113", "sha256": "d56feedae0c52c230396d5b6d7894d9ffd93a295116d4085df216d9bcef4ef63" }, "downloads": -1, "filename": "collective.cdn.alternatehostname-0.5.zip", "has_sig": false, "md5_digest": "3ed687d7c33d2f753f7dd17a2e782113", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24570, "upload_time": "2011-02-21T20:58:26", "url": "https://files.pythonhosted.org/packages/ea/ff/ba7ad185ff776774147bc57765a0792303647bc819a6fe4bacba46f5d0c9/collective.cdn.alternatehostname-0.5.zip" } ] }