<div dir="ltr">Hi, I'm not sure what you did, but nginx.conf file, is only used to configure the http server, not vhosts.<div><br><div>There is 2 ways to setup vhosts (called server blocs in NginX) :</div><div><br></div><div>A. Use the default config file (usually located @ /etc/nginx/sites-available/default) and add all your vhosts there. The default file is self explanatory</div><div><br></div><div>B. You can use a different file for every server bloc (vhost) by making a copy of the default file :</div></div><div>/etc/nginx/sites-available/vhost1.tld<br></div><div>/etc/nginx/sites-available/vhos2.tld</div><div>...</div><div><br></div><div>I think the conflict you are facing is due to default config file, delete the symbolic link found in /etc/nginx/sites-enabled/ folder.</div><div><br></div><div>Hope this helps</div><div><br></div><div>Some interesting readings when starting with NginX :</div><div><a href="http://nginx.org/en/docs/beginners_guide.html">http://nginx.org/en/docs/beginners_guide.html</a><br></div><div><a href="http://blog.martinfjordvald.com/2010/07/nginx-primer/">http://blog.martinfjordvald.com/2010/07/nginx-primer/</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-20 19:34 GMT+02:00 daBee <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi folks.<br>
<br>
Brand new to nginx.  I'm trying to run 3 vhosts on my workstation to get<br>
familiar with nginx.<br>
<br>
alpha<br>
bravo<br>
charlie<br>
<br>
I'm using bravo in the main nginx.conf pointing to /var/www/alpha/<br>
<br>
bravo and charlie are in settings/vhosts.conf into /var/www/bravo and<br>
/var/www/charlie<br>
<br>
Upon trying to start nginx (installed via homebrew on OSX), I get the<br>
following:<br>
<br>
HQ:~ rich$ sudo nginx<br>
nginx: [emerg] bind() to <a href="http://0.0.0.0:8080" target="_blank">0.0.0.0:8080</a> failed (48: Address already in use)<br>
nginx: [emerg] bind() to <a href="http://0.0.0.0:8080" target="_blank">0.0.0.0:8080</a> failed (48: Address already in use)<br>
nginx: [emerg] bind() to <a href="http://0.0.0.0:8080" target="_blank">0.0.0.0:8080</a> failed (48: Address already in use)<br>
nginx: [emerg] bind() to <a href="http://0.0.0.0:8080" target="_blank">0.0.0.0:8080</a> failed (48: Address already in use)<br>
nginx: [emerg] bind() to <a href="http://0.0.0.0:8080" target="_blank">0.0.0.0:8080</a> failed (48: Address already in use)<br>
nginx: [emerg] still could not bind()<br>
<br>
Not too sure what that means.  I'm sure it's a directive that's not entered<br>
for localhost.<br>
<br>
Anyway, any leadership appreciated as to how to get this thing going.<br>
<br>
Cheers<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,258229,258229#msg-258229" target="_blank">http://forum.nginx.org/read.php?2,258229,258229#msg-258229</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>