cookbook 'nginx_fallback_to_apache', '= 1.0.0'
nginx_fallback_to_apache (2) Versions 1.0.0 Follow0
Create a default site in Nginx that matches unhandled hosts and proxy them to Apache
cookbook 'nginx_fallback_to_apache', '= 1.0.0', :supermarket
knife supermarket install nginx_fallback_to_apache
knife supermarket download nginx_fallback_to_apache
nginx_fallback_to_apache Cookbook
Create a default site in Nginx that matches unhandled hosts and proxy them to Apache
Attributes
nginx_fallback_to_apache::default
<table>
<tr>
<th>Attribute</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>node[:nginx_fallback_to_apache][:nginx_port]</tt></td>
<td>The main port Nginx is listening</td>
<td><tt>node[:nginx][:listen_ports].first</tt></td>
</tr>
<tr>
<td><tt>node[:nginx_fallback_to_apache][:apache_port]</tt></td>
<td>The main port Apache is listening</td>
<td><tt>node[:apache][:listen_ports].first</tt></td>
</tr>
</table>
Usage
nginx_fallback_to_apache::default
Just include nginx\_fallback\_to\_apache
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[nginx_fallback_to_apache]" ] }
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Dependent cookbooks
nginx >= 0.0.0 |
apache2 >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.