There's a bit of confusion going on there... Only the apache2
cookbook has a web_app
definition. The nginx
cookbook uses a nginx_site
definition.
That said, your issue seems to come from the fact that you have two different processes trying to listen on the same port on the same node. To fix that, you have to tell either apache
or nginx
to listen on a different port.
To configure apache
, you have to override node[:apache][:listen_ports]
to exclude 80.
For nginx
, you probably have to set your virtual hosts not to listen on port 80.