<div dir="ltr"><div><div>Hi Sajan<br><br></div>Yes I did restart nginx. I've tried several times.<br><br>Just tried nginx -t and all seems to be fine.<br><br><span style="color:rgb(230,145,56)">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></span><br><br></div>JV<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 June 2013 15:48, Sajan Parikh <span dir="ltr"><<a href="mailto:sajan@noppix.com" target="_blank">sajan@noppix.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Did you restart nginx for the new
      configuration to take effect?  Run 'sudo service nginx restart' to
      do this.  Also run 'nginx -t' to test your configuration.<br>
      <br>
      <div>Sajan Parikh<br>
        <i>Owner, Noppix LLC</i><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>
        <img alt="Noppix LLC Logo"></div><div><div class="h5">
      On 06/17/2013 09:36 AM, Janet Valbuena wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>Hi<br>
          <br>
          I'm new to nginx. I'm trying to configure a virtual server. <br>
          <br>
        </div>
        I've created a new server file under sites-enabled like this:<br>
        <br clear="all">
        <div>
          <div><span style="color:rgb(224,102,102)">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
              $document_root$fastcgi_script_name;<br>
                  }<br>
              }</span><br>
            <br>
            <br>
          </div>
          <div>Is there anything wrong with that? <br>
          </div>
          <div>When I type in blogtest/index.php on the browser I get
            the default config, which points to /usr/share/nginx/www/,
            even though I deleted the symbolic link to
            sites-available/default from sites-enabled.<br>
            <br>
          </div>
          <div>Note: <span style="color:rgb(224,102,102)"><span style="color:rgb(0,0,0)">/usr/share/nginx/cakephptest/app/webroot/index.php
                does exist.</span><br>
              <br>
            </span></div>
          <div>Could anyone please help.<br>
            <br>
          </div>
          <div>Thanks <br>
            <br>
          </div>
          <div>JV<br>
          </div>
          <div><br>
            <br>
            <br>
            -- <br>
            <div dir="ltr">
              <div style="font-size:13px;font-family:Verdana,Arial,Helvetica,sans-serif">
                <div style="margin:0px 0px 8px">
                  <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;border:0px none rgb(102,102,102)">
                      <tr style="font-family:sans-serif;font-size:12px;width:440px;border-spacing:2px;border:0px none rgb(102,102,102)" valign="top">
                        <td style="font-family:sans-serif;font-size:12px;vertical-align:top;border-right:1px solid rgb(102,102,102);padding:1px 8px 1px 1px;width:200px;border-spacing:2px"><img style="font-family:sans-serif;font-size:12px;min-height:60px;width:235px;border-spacing:2px" alt="WiFi SPARK"><br>

                          <a href="http://facebook.com/wifispark" style="text-decoration:underline" target="_blank"><img alt="Facebook" style="padding:0px 0px 5px;vertical-align:middle" height="32" width="32" border="0"></a> <a href="http://twitter.com/wifispark" style="text-decoration:underline" target="_blank"><img alt="Twitter" style="padding:0px 0px 5px;vertical-align:middle" height="32" width="32" border="0"></a></td>

                        <td style="font-family:sans-serif;font-size:12px;vertical-align:top;color:rgb(51,51,51);padding:1px 1px 1px 6px;width:265px;outline:0px none rgb(51,51,51);border-spacing:2px;border:0px none rgb(51,51,51)">

                          <div style="font-family:sans-serif;font-size:12px;text-transform:capitalize;color:rgb(51,51,51);width:265px;outline:0px none rgb(51,51,51);border-spacing:2px;border:0px none rgb(51,51,51)"><b style="font-family:Arial;font-size:12px;text-transform:capitalize;color:rgb(51,51,51);outline:0px none rgb(51,51,51);border-spacing:2px;border:0px none rgb(51,51,51)">Janet Valbuena</b><br style="font-family:sans-serif;font-size:12px;text-transform:capitalize;color:rgb(51,51,51);outline:0px none rgb(51,51,51);border-spacing:2px;border:0px none rgb(51,51,51)">

                            <span style="font-family:Arial;font-size:13px;text-transform:capitalize;color:rgb(51,51,51);outline:0px none rgb(51,51,51);border-spacing:2px;border:0px none rgb(51,51,51)">Software Developer</span></div>

                          <div style="font-family:Arial;font-size:11px;color:rgb(102,102,102);padding:5px 0px;width:265px;outline:0px none rgb(102,102,102);border-spacing:2px;border:0px none rgb(102,102,102)"><span style="font-family:sans-serif;font-size:11px;color:rgb(102,102,102);outline:0px none rgb(102,102,102);border-spacing:2px"><b>t:</b></span> <a style="text-decoration:none;color:rgb(102,102,102)">0844 848 9555</a>
                            <span style="font-family:sans-serif;font-size:11px;color:rgb(102,102,102);outline:0px none rgb(102,102,102);border-spacing:2px;border:0px none rgb(102,102,102)"> | <b>f:<span> </span></b><span><a style="text-decoration:none;color:rgb(102,102,102)">01626 834 745</a></span></span><br>

                            <span style="font-family:sans-serif;font-size:11px;white-space:nowrap;color:rgb(102,102,102);outline:0px none rgb(102,102,102);border-spacing:2px;border:0px none rgb(102,102,102)"><span style="font-family:sans-serif;font-size:11px;white-space:nowrap;color:rgb(102,102,102);outline:0px none rgb(102,102,102);border-spacing:2px;border:0px none rgb(102,102,102)"><b><span style="font-family:sans-serif;font-size:11px;white-space:nowrap;border-spacing:2px">w: </span></b><a style="text-decoration:none;color:rgb(255,102,0)" href="http://www.wifispark.com/" target="_blank">wifispark.com</a></span></span></div>

                          <p style="margin:0px"><span style="font-family:sans-serif;color:rgb(102,102,102);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:rgb(51,51,51);padding:0px;outline:0px none rgb(51,51,51);border-spacing:0px;border:0px none rgb(51,51,51)">
                          <div style="font-size:10px;font-family:Verdana,Arial,Helvetica,sans-serif">
                            <p style="margin:0px"><span style="font-family:sans-serif;font-size:10px;color:rgb(51,51,51);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>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
nginx mailing list
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
    </blockquote>
    <br>
  </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>