<div dir="ltr"><div>This is my nginx.conf page, which I haven't done anything with. The /etc/nginx/conf.d/ directory on my machine is empty. </div><div><br></div><div>user www-data;</div><div>worker_processes 4;</div>
<div>pid /run/nginx.pid;</div><div><br></div><div>events {</div><div><span class="" style="white-space:pre"> </span>worker_connections 768;</div><div><span class="" style="white-space:pre"> </span># multi_accept on;</div>
<div>}</div><div><br></div><div>http {</div><div><br></div><div><span class="" style="white-space:pre"> </span>##</div><div><span class="" style="white-space:pre"> </span># Basic Settings</div><div><span class="" style="white-space:pre"> </span>##</div>
<div><br></div><div><span class="" style="white-space:pre"> </span>sendfile on;</div><div><span class="" style="white-space:pre"> </span>tcp_nopush on;</div><div><span class="" style="white-space:pre"> </span>tcp_nodelay on;</div>
<div><span class="" style="white-space:pre"> </span>keepalive_timeout 65;</div><div><span class="" style="white-space:pre"> </span>types_hash_max_size 2048;</div><div><span class="" style="white-space:pre"> </span># server_tokens off;</div>
<div><br></div><div><span class="" style="white-space:pre"> </span># server_names_hash_bucket_size 64;</div><div><span class="" style="white-space:pre"> </span># server_name_in_redirect off;</div><div><br></div><div><span class="" style="white-space:pre"> </span>include /etc/nginx/mime.types;</div>
<div><span class="" style="white-space:pre"> </span>default_type application/octet-stream;</div><div><br></div><div><span class="" style="white-space:pre"> </span>##</div><div><span class="" style="white-space:pre"> </span># Logging Settings</div>
<div><span class="" style="white-space:pre"> </span>##</div><div><br></div><div><span class="" style="white-space:pre"> </span>access_log /var/log/nginx/access.log;</div><div><span class="" style="white-space:pre"> </span>error_log /var/log/nginx/error.log;</div>
<div><br></div><div><span class="" style="white-space:pre"> </span>##</div><div><span class="" style="white-space:pre"> </span># Gzip Settings</div><div><span class="" style="white-space:pre"> </span>##</div><div><br></div>
<div><span class="" style="white-space:pre"> </span>gzip on;</div><div><span class="" style="white-space:pre"> </span>gzip_disable "msie6";</div><div><br></div><div><span class="" style="white-space:pre"> </span># gzip_vary on;</div>
<div><span class="" style="white-space:pre"> </span># gzip_proxied any;</div><div><span class="" style="white-space:pre"> </span># gzip_comp_level 6;</div><div><span class="" style="white-space:pre"> </span># gzip_buffers 16 8k;</div>
<div><span class="" style="white-space:pre"> </span># gzip_http_version 1.1;</div><div><span class="" style="white-space:pre"> </span># gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;</div>
<div><br></div><div><span class="" style="white-space:pre"> </span>##</div><div><span class="" style="white-space:pre"> </span># nginx-naxsi config</div><div><span class="" style="white-space:pre"> </span>##</div><div><span class="" style="white-space:pre"> </span># Uncomment it if you installed nginx-naxsi</div>
<div><span class="" style="white-space:pre"> </span>##</div><div><br></div><div><span class="" style="white-space:pre"> </span>#include /etc/nginx/naxsi_core.rules;</div><div><br></div><div><span class="" style="white-space:pre"> </span>##</div>
<div><span class="" style="white-space:pre"> </span># nginx-passenger config</div><div><span class="" style="white-space:pre"> </span>##</div><div><span class="" style="white-space:pre"> </span># Uncomment it if you installed nginx-passenger</div>
<div><span class="" style="white-space:pre"> </span>##</div><div><span class="" style="white-space:pre"> </span></div><div><span class="" style="white-space:pre"> </span>#passenger_root /usr;</div><div><span class="" style="white-space:pre"> </span>#passenger_ruby /usr/bin/ruby;</div>
<div><br></div><div><span class="" style="white-space:pre"> </span>##</div><div><span class="" style="white-space:pre"> </span># Virtual Host Configs</div><div><span class="" style="white-space:pre"> </span>##</div><div>
<br>
</div><div><span class="" style="white-space:pre"> </span>include /etc/nginx/conf.d/*.conf;</div><div><span class="" style="white-space:pre"> </span>include /etc/nginx/sites-enabled/*;</div><div>}</div><div><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 3, 2014 at 8:53 AM, Valentin V. Bartenev <span dir="ltr"><<a href="mailto:vbart@nginx.com" target="_blank">vbart@nginx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sunday 02 February 2014 09:14:03 Josh Stratton wrote:<br>
> I've followed the tutorial below to setup a couple of server blocks, but I<br>
> get the "Welcome to nginx" message every time.<br>
><br>
> <a href="https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3" target="_blank">https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3</a><br>
><br>
> $ ls -l /etc/nginx/sites-available/<br>
> total 8<br>
> -rw-r--r-- 1 root root 1185 Feb 2 17:01 <a href="http://morebearsmore.com" target="_blank">morebearsmore.com</a><br>
> -rw-r--r-- 1 root root 2744 Feb 2 17:07 <a href="http://strattonbrazil.com" target="_blank">strattonbrazil.com</a><br>
><br>
> $ ls -l /etc/nginx/sites-enabled/<br>
> total 0<br>
> lrwxrwxrwx 1 root root 44 Feb 2 17:03 <a href="http://morebearsmore.com" target="_blank">morebearsmore.com</a> -><br>
> /etc/nginx/sites-available/<a href="http://morebearsmore.com" target="_blank">morebearsmore.com</a><br>
> lrwxrwxrwx 1 root root 45 Feb 2 16:44 <a href="http://strattonbrazil.com" target="_blank">strattonbrazil.com</a> -><br>
> /etc/nginx/sites-available/<a href="http://strattonbrazil.com" target="_blank">strattonbrazil.com</a><br>
><br>
> This is the contents of more of the configs (minus the comments at the<br>
> top).<br>
</div>[..]<br>
<br>
What's in your nginx.conf?<br>
<br>
wbr, Valentin V. Bartenev<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>