<div dir="ltr"><div>Hi Wong<br><br>I installed nginx recently and haven't changed anything in nginx.conf.<br><br></div><div>It actually doesn't include /etc/nginx/sites-available/* but it does include /etc/nginx/sites-enabled/*, which is where I put a symbolic link of my config file.<br>
<br><span style="color:rgb(255,0,0)">user www-data;<br>worker_processes 4;<br>pid /var/run/nginx.pid;<br><br>events {<br>    worker_connections 768;<br>    # multi_accept on;<br>}<br><br>http {<br><br>    ##<br>    # Basic Settings<br>
    ##<br><br>    sendfile on;<br>    tcp_nopush on;<br>    tcp_nodelay on;<br>    keepalive_timeout 65;<br>    types_hash_max_size 2048;<br>    # server_tokens off;<br><br>    # server_names_hash_bucket_size 64;<br>    # server_name_in_redirect off;<br>
<br>    include /etc/nginx/mime.types;<br>    default_type application/octet-stream;<br><br>    ##<br>    # Logging Settings<br>    ##<br><br>    access_log /var/log/nginx/access.log;<br>    error_log /var/log/nginx/error.log;<br>
<br>    ##<br>    # Gzip Settings<br>    ##<br><br>    gzip on;<br>    gzip_disable "msie6";<br><br>    # gzip_vary on;<br>    # gzip_proxied any;<br>    # gzip_comp_level 6;<br>    # gzip_buffers 16 8k;<br>    # gzip_http_version 1.1;<br>
    # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;<br><br>    ##<br>    # nginx-naxsi config<br>    ##<br>    # Uncomment it if you installed nginx-naxsi<br>
    ##<br><br>    #include /etc/nginx/naxsi_core.rules;<br><br>    ##<br>    # nginx-passenger config<br>    ##<br>    # Uncomment it if you installed nginx-passenger<br>    ##<br><br>    #passenger_root /usr;<br>    #passenger_ruby /usr/bin/ruby;<br>
<br>    ##<br>    # Virtual Host Configs<br>    ##<br><br>    include /etc/nginx/conf.d/*.conf;<br>   <b> include /etc/nginx/sites-enabled/*;</b><br>}</span><br><br></div><div>Just in case it helps I'm using Ubuntu 12.04 LTS<br>
<br></div><div>Thanks<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 June 2013 16:41, Wong Kee Wee <span dir="ltr"><<a href="mailto:wongkeewee@gmail.com" target="_blank">wongkeewee@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Janet,<div><br>Can you show us the content of your nginx.conf?</div><div><br></div><div>Do you have the 'include' directive in your nginx.conf to point to your sites-available?</div>
<div><br></div><div>For example:</div>
<div>http {</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>...</div><div>include /etc/nginx/sites-available/*;</div><div>...</div></blockquote>}</div><div><br></div><div><div>Best regards,<br>

Wong Kee Wee</div>
<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Hi Sajan<br>
<br>
Yes I did restart nginx. I've tried several times.<br>
<br>
Just tried nginx -t and all seems to be fine.<br>
<br>
nginx -t<br>
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok<br>
nginx: configuration file /etc/nginx/nginx.conf test is successful<br>
<br>
<br>
JV<br>
<br>
<br>
On 17 June 2013 15:48, Sajan Parikh <<a href="mailto:sajan@noppix.com" target="_blank">sajan@noppix.com</a>> wrote:<br>
<br>
>  Did you restart nginx for the new configuration to take effect?  Run<br>
> 'sudo service nginx restart' to do this.  Also run 'nginx -t' to test your<br>
> configuration.<br>
><br>
> Sajan Parikh<br></div>
> *Owner, Noppix LLC*<div><div class="h5"><br>
><br>
> e: <a href="mailto:sajan@noppix.com" target="_blank">sajan@noppix.com</a><br>
> p: <a href="tel:%28563%29%20726-0371" value="+15637260371" target="_blank">(563) 726-0371</a><br>
><br>
> [image: Noppix LLC Logo]<br>
> On 06/17/2013 09:36 AM, Janet Valbuena wrote:<br>
><br>
>  Hi<br>
><br>
> I'm new to nginx. I'm trying to configure a virtual server.<br>
><br>
>  I've created a new server file under sites-enabled like this:<br>
><br>
>  server {<br>
>     listen  80; ## listen for ipv4; this line is default and implied<br>
><br>
>     server_name blogtest;<br>
><br>
>     root /usr/share/nginx/cakephptest/app/webroot;<br>
>     index index.php;<br>
><br>
>     location / {<br>
>             # First attempt to serve request as file, then<br>
>             # as directory, then fall back to 404<br>
>             try_files $uri $uri/ =404;<br>
>     }<br>
>     # PHP FPM<br>
>     location ~ \.php$ {<br>
>             fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
>             fastcgi_index index.php;<br>
>             include fastcgi_params;<br>
>             fastcgi_intercept_errors on;<br>
>             fastcgi_buffers 8 16k;<br>
>             fastcgi_buffer_size 32k;<br>
>             fastcgi_split_path_info ^(.+\.php)(/.+)$;<br>
>             fastcgi_param PATH_INFO $fastcgi_path_info;<br>
>             fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;<br>
>             fastcgi_param SCRIPT_FILENAME<br>
> $document_root$fastcgi_script_name;<br>
>     }<br>
> }<br>
><br>
><br>
>  Is there anything wrong with that?<br>
>  When I type in blogtest/index.php on the browser I get the default<br>
> config, which points to /usr/share/nginx/www/, even though I deleted the<br>
> symbolic link to sites-available/default from sites-enabled.<br>
><br>
>  Note: /usr/share/nginx/cakephptest/app/webroot/index.php does exist.<br>
><br>
>  Could anyone please help.<br>
><br>
>  Thanks<br>
><br>
>  JV<br></div></div></blockquote></div></div>
<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><br clear="all"><br>-- <br><div dir="ltr">

<div style="font-size:13px;font-family:Verdana,Arial,Helvetica,sans-serif">
  <div style="margin:0 0 8px 0"><table style="font-family:sans-serif;font-size:12px;width:500px" border="0">
<tbody style="font-family:sans-serif;font-size:12px;width:500px;border-spacing:2px 2px;border:0px none #666666">
<tr style="font-family:sans-serif;font-size:12px;width:440px;border-spacing:2px 2px;border:0px none #666666" valign="top">
<td style="font-family:sans-serif;font-size:12px;vertical-align:top;border-right:1px solid #666666;padding:1px 8px 1px 1px;width:200px;border-spacing:2px 2px"><img style="font-family:sans-serif;font-size:12px;height:60px;width:235px;border-spacing:2px 2px" src="https://www.wifispark.com/email/signature/wifispark.png" alt="WiFi SPARK"><br>
<a href="http://facebook.com/wifispark" style="text-decoration:underline" target="_blank"><img alt="Facebook" style="padding:0px 0px 5px 0px;vertical-align:middle" src="https://www.wifispark.com/email/signature/social/facebook-icon.png" height="32" border="0" width="32"></a> <a href="http://twitter.com/wifispark" style="text-decoration:underline" target="_blank"><img alt="Twitter" style="padding:0px 0px 5px 0px;vertical-align:middle" src="https://www.wifispark.com/email/signature/social/twitter-icon.png" height="32" border="0" width="32"></a></td>

<td style="font-family:sans-serif;font-size:12px;vertical-align:top;color:#333333;padding:1px 1px 1px 6px;width:265px;outline:#333333 none 0px;border-spacing:2px 2px;border:0px none #333333">
<div style="font-family:sans-serif;font-size:12px;text-transform:capitalize;color:#333333;width:265px;outline:#333333 none 0px;border-spacing:2px 2px;border:0px none #333333"><strong style="font-family:Arial;font-size:12px;text-transform:capitalize;color:#333333;outline:#333333 none 0px;border-spacing:2px 2px;border:0px none #333333">Janet Valbuena</strong><br style="font-family:sans-serif;font-size:12px;text-transform:capitalize;color:#333333;outline:#333333 none 0px;border-spacing:2px 2px;border:0px none #333333">
 
<span style="font-family:Arial;font-size:13px;text-transform:capitalize;color:#333333;outline:#333333 none 0px;border-spacing:2px 2px;border:0px none #333333">Software Developer</span></div>
<div style="font-family:Arial;font-size:11px;color:#666666;padding:5px 0px;width:265px;outline:#666666 none 0px;border-spacing:2px 2px;border:0px none #666666"><span style="font-family:sans-serif;font-size:11px;color:#666666;outline:#666666 none 0px;border-spacing:2px 2px"><strong>t:</strong></span> <a style="text-decoration:none;color:#666666">0844 848 9555</a> <span style="font-family:sans-serif;font-size:11px;color:#666666;outline:#666666 none 0px;border-spacing:2px 2px;border:0px none #666666"> | 
  <strong>f:<span> </span></strong><span><a style="text-decoration:none;color:#666666">01626 834 745</a></span></span><br><span style="font-family:sans-serif;font-size:11px;white-space:nowrap;color:#666666;outline:#666666 none 0px;border-spacing:2px 2px;border:0px none #666666"><span style="font-family:sans-serif;font-size:11px;white-space:nowrap;color:#666666;outline:#666666 none 0px;border-spacing:2px 2px;border:0px none #666666"><strong><span style="font-family:sans-serif;font-size:11px;white-space:nowrap;border-spacing:2px 2px">w: </span></strong><a style="text-decoration:none;color:#ff6600" href="http://www.wifispark.com/" target="_blank">wifispark.com</a></span></span></div>

<p style="margin:0"><span style="font-family:sans-serif;color:#666666;font-size:11px">WiFi SPARK Ltd, Teignbridge Business Centre, Cavalier Road, Newton Abbot, Devon, TQ12 6TZ</span></p>
</td>
</tr>
</tbody>
</table>

<table border="0">
  <tbody><tr>
    <td style="font-family:sans-serif;font-size:10px;vertical-align:top;color:#333333;padding:0px 0px 0px 0px;outline:#333333 none 0px;border-spacing:0px 0px;border:0px none #333333"><div style="font-size:10px;font-family:Verdana,Arial,Helvetica,sans-serif">

<p style="margin:0"><span style="font-family:sans-serif;font-size:10px;color:#333333;font-style:italic">
This message and its attachments are deemed confidential. If you are not
 the intended recipient, you are strictly prohibited to disclose, copy, 
distribute or take any action in relation to the contents of this 
message. WiFi SPARK accepts no liability for virus transmission, for the
 content of this email, or for the consequences of any actions taken on 
the basis of the information provided, unless that information is 
subsequently confirmed in writing.</span></p>
  </div></td>
  </tr>
</tbody></table>
</div>
</div>


</div>
</div>