<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">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; height: 60px; width: 235px; border-spacing: 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; vertical-align: middle;" src="https://www.wifispark.com/email/signature/social/facebook-icon.png" 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;" src="https://www.wifispark.com/email/signature/social/twitter-icon.png" 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>