{ "info": { "author": "Pierre Penninckx", "author_email": "ibizapeanut@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# haproxysubdomains\n\nManages redirect rules in haproxy configuration based on subdomain acl.\n\nWatch out, this will remove any comment in the haproxy config.\n\nUses [`pyhaproxy`](https://github.com/imjoey/pyhaproxy) under the\nhood.\n\n## Usage\n```\n$ cat test.cfg\n```\n\n```\nfrontend http\n bind *:80\n\n\nfrontend https\n bind *:443 ssl crt /etc/ssl/my_cert/\n default_backend default\n\n\nbackend default\n server default 127.0.0.1:8888\n```\n\nAdd a redirect rule:\n```\n$ haproxysubdomains add test.cfg https mydomain.com subdomain 5432\n\n$ cat test.cfg\n```\n\n```\nfrontend http\n bind *:80\n\n\nfrontend https\n bind *:443 ssl crt /etc/ssl/my_cert/\n default_backend default\n acl subdomain hdr(host) -i subdomain.mydomain.com\n use_backend subdomain if subdomain\n\n\nbackend default\n server default 127.0.0.1:8888\n\n\nbackend subdomain\n server subdomain 127.0.0.1:5432\n```\n\nRemove a redirect rule:\n```\n$ haproxysubdomains del test.cfg https subdomain\n```\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/ibizaman/haproxysubdomains/archive/0.1.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ibizaman/haproxysubdomains", "keywords": "haproxy", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "haproxysubdomains", "package_url": "https://pypi.org/project/haproxysubdomains/", "platform": "", "project_url": "https://pypi.org/project/haproxysubdomains/", "project_urls": { "Download": "https://github.com/ibizaman/haproxysubdomains/archive/0.1.0.tar.gz", "Homepage": "https://github.com/ibizaman/haproxysubdomains" }, "release_url": "https://pypi.org/project/haproxysubdomains/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Manages redirect rules in haproxy configuration based on subdomain acl.", "version": "0.1.0" }, "last_serial": 3893264, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a3b82baff9b21a07800399e82b915cc5", "sha256": "764d829c48967953687a159c446af2d813fd832837ea0bb528c4c638143c6f92" }, "downloads": -1, "filename": "haproxysubdomains-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a3b82baff9b21a07800399e82b915cc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2408, "upload_time": "2018-05-24T00:11:06", "url": "https://files.pythonhosted.org/packages/11/60/1665a8f0b98cc43099af51f1da3339b5ecbad61116697829dc5864a2fb5e/haproxysubdomains-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a3b82baff9b21a07800399e82b915cc5", "sha256": "764d829c48967953687a159c446af2d813fd832837ea0bb528c4c638143c6f92" }, "downloads": -1, "filename": "haproxysubdomains-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a3b82baff9b21a07800399e82b915cc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2408, "upload_time": "2018-05-24T00:11:06", "url": "https://files.pythonhosted.org/packages/11/60/1665a8f0b98cc43099af51f1da3339b5ecbad61116697829dc5864a2fb5e/haproxysubdomains-0.1.0.tar.gz" } ] }