<commit_before>This profile generates the configuration file for [haproxy](http://en.wikipedia.org/wiki/HAProxy) to generate a [reverse proxy server](http://en.wikipedia.org/wiki/Reverse_proxy) for the web services and web applications running inside the fabric.

To map the URIs inside the gateway to HTTP URLs on the underlying web services and web applications we use HTTP mapping rules which make use of a [URI template](http://en.wikipedia.org/wiki/URL_Template) syntax to allow flexible configuration and mapping options.

Using this profile watches the contents of the fabric8 registry and auto-regenerates the haproxy configuration file based on the services running and the mapping rules. The default location for the generated haproxy configuration file is in **data/gateway/haproxy.conf** in the container's install directory.<commit_msg>#604 added a link to edit the mvel template file for the haproxy profile<commit_after>This profile generates the configuration file for [haproxy](http://en.wikipedia.org/wiki/HAProxy) to generate a [reverse proxy server](http://en.wikipedia.org/wiki/Reverse_proxy) for the web services and web applications running inside the fabric.

To map the URIs inside the gateway to HTTP URLs on the underlying web services and web applications we use HTTP mapping rules which make use of a [URI template](http://en.wikipedia.org/wiki/URL_Template) syntax to allow flexible configuration and mapping options.

Using this profile watches the contents of the fabric8 registry and auto-regenerates the haproxy configuration file based on the services running and the mapping rules. The default location for the generated haproxy configuration file is in **data/gateway/haproxy.conf** in the container's install directory.

### Changing the haproxy configuration

This profile uses an MVEL template file to generate the haproxy configuration file from the dynamic URI templates of the services being exposed. To change the haproxy configuration file please edit the [MVEL Template](/fabric/profiles/gateway/haproxy.profile/io.fabric8.gateway.haproxy.config.mvel)
{'fraction_non_alphanumeric': 0.05627086313781593, 'fraction_numerical': 0.002861230329041488, 'mean_word_length': 5.338368580060423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3443065', 'n_tokens_mistral': 518, 'n_tokens_neox': 486, 'n_words': 260}