<div dir="ltr"><div><div><div><div>Hi Wong, hi Vasil<br><br></div></div>I did restart nginx and reloaded the browser while I was setting up this virtual server yesterday several times. <br><br></div>Strangely, this morning when I started my computer all worked well. Maybe I needed to restart the network or something else?<br>
<br>Thanks very much for your help.<br><br></div>Janet<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 June 2013 06:34, 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"><div>Hi Janet,</div><div><br></div><div>It is weird then</div><div>Once you remove the 'default' symlink and reload the config, the old configuration should no longer take effect.</div>
<div><br></div><div>Have you tried refreshing your browser after restarting/reloading nginx? I'm suspecting the old index page was cached by your browser</div><div class="im">
<div><br></div><div>Best regards,</div><div>Wong Kee Wee</div><div><br></div></div><div>On 18/6/2013 3:59 AM, <a href="mailto:nginx-request@nginx.org" target="_blank">nginx-request@nginx.org</a> wrote:</div><div>> Message: 2</div>
<div>> Date: Mon, 17 Jun 2013 16:56:47 +0100</div>
<div>> From: Janet Valbuena <<a href="mailto:janet@wifispark.com" target="_blank">janet@wifispark.com</a>></div><div>> To: <a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a></div><div>> Subject: Re: virtual server configuration</div>
<div>> Message-ID:</div><div>> <span style="white-space:pre-wrap"> </span><CAJ_w=<a href="mailto:tFoFPPJTErPkrNcz4jSf5F63_Jo9J4gU9MBE18r4RkM-A@mail.gmail.com" target="_blank">tFoFPPJTErPkrNcz4jSf5F63_Jo9J4gU9MBE18r4RkM-A@mail.gmail.com</a>></div>
<div>> Content-Type: text/plain; charset="iso-8859-1"</div><div><div class="h5"><div>></div><div>> Hi Wong</div><div>></div><div>> I installed nginx recently and haven't changed anything in nginx.conf.</div>
<div>></div>
<div>> It actually doesn't include /etc/nginx/sites-available/* but it does</div><div>> include /etc/nginx/sites-enabled/*, which is where I put a symbolic link of</div><div>> my config file.</div><div>></div>
<div>> user www-data;</div><div>> worker_processes 4;</div><div>> pid /var/run/nginx.pid;</div><div>></div><div>> events {</div><div>> worker_connections 768;</div><div>> # multi_accept on;</div>
<div>> }</div><div>></div><div>> http {</div><div>></div><div>> ##</div><div>> # Basic Settings</div><div>> ##</div><div>></div><div>> sendfile on;</div><div>> tcp_nopush on;</div>
<div>> tcp_nodelay on;</div><div>> keepalive_timeout 65;</div><div>> types_hash_max_size 2048;</div><div>> # server_tokens off;</div><div>></div><div>> # server_names_hash_bucket_size 64;</div>
<div>> # server_name_in_redirect off;</div><div>></div><div>> include /etc/nginx/mime.types;</div><div>> default_type application/octet-stream;</div><div>></div><div>> ##</div><div>> # Logging Settings</div>
<div>> ##</div><div>></div><div>> access_log /var/log/nginx/access.log;</div><div>> error_log /var/log/nginx/error.log;</div><div>></div><div>> ##</div><div>> # Gzip Settings</div>
<div>> ##</div><div>></div><div>> gzip on;</div><div>> gzip_disable "msie6";</div><div>></div><div>> # gzip_vary on;</div><div>> # gzip_proxied any;</div><div>> # gzip_comp_level 6;</div>
<div>> # gzip_buffers 16 8k;</div><div>> # gzip_http_version 1.1;</div><div>> # gzip_types text/plain text/css application/json</div><div>> application/x-javascript text/xml application/xml application/xml+rss</div>
<div>> text/javascript;</div><div>></div><div>> ##</div><div>> # nginx-naxsi config</div><div>> ##</div><div>> # Uncomment it if you installed nginx-naxsi</div><div>> ##</div><div>
></div><div>> #include /etc/nginx/naxsi_core.rules;</div><div>></div><div>> ##</div><div>> # nginx-passenger config</div><div>> ##</div><div>> # Uncomment it if you installed nginx-passenger</div>
<div>> ##</div><div>></div><div>> #passenger_root /usr;</div><div>> #passenger_ruby /usr/bin/ruby;</div><div>></div><div>> ##</div><div>> # Virtual Host Configs</div><div>> ##</div>
<div>></div><div>> include /etc/nginx/conf.d/*.conf;</div></div></div><div>> * include /etc/nginx/sites-enabled/*;*</div><div><div class="h5"><div>> }</div><div>></div><div>> Just in case it helps I'm using Ubuntu 12.04 LTS</div>
<div>></div><div>> Thanks</div><div>></div><div>></div><div>></div><div>> On 17 June 2013 16:41, Wong Kee Wee <<a href="mailto:wongkeewee@gmail.com" target="_blank">wongkeewee@gmail.com</a>> wrote:</div>
<div>></div>
<div>>> > Hi Janet,</div><div>>> ></div><div>>> > Can you show us the content of your nginx.conf?</div><div>>> ></div><div>>> > Do you have the 'include' directive in your nginx.conf to point to your</div>
<div>>> > sites-available?</div><div>>> ></div><div>>> > For example:</div><div>>> > http {</div><div>>> ></div><div>>> > ...</div><div>>> > include /etc/nginx/sites-available/*;</div>
<div>>> > ...</div><div>>> ></div><div>>> > }</div><div>>> ></div><div>>> > Best regards,</div><div>>> > Wong Kee Wee</div><div>>> ></div><div>>> ></div>
<div>>> > Hi Sajan</div><div>>>> >></div><div>>>> >> Yes I did restart nginx. I've tried several times.</div><div>>>> >></div><div>>>> >> Just tried nginx -t and all seems to be fine.</div>
<div>>>> >></div><div>>>> >> nginx -t</div><div>>>> >> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok</div><div>>>> >> nginx: configuration file /etc/nginx/nginx.conf test is successful</div>
<div>>>> >></div><div>>>> >></div><div>>>> >> JV</div><div>>>> >></div><div>>>> >></div><div>>>> >> On 17 June 2013 15:48, Sajan Parikh <<a href="mailto:sajan@noppix.com" target="_blank">sajan@noppix.com</a>> wrote:</div>
<div>>>> >></div><div>>>>> >> > Did you restart nginx for the new configuration to take effect? Run</div><div>>>>> >> > 'sudo service nginx restart' to do this. Also run 'nginx -t' to test</div>
<div>>>> >> your</div><div>>>>> >> > configuration.</div><div>>>>> >> ></div><div>>>>> >> > Sajan Parikh</div><div>>>>> >> > *Owner, Noppix LLC*</div>
<div>>>> >></div><div>>>>> >> ></div><div>>>>> >> > e: <a href="mailto:sajan@noppix.com" target="_blank">sajan@noppix.com</a></div><div>>>>> >> > p: <a href="tel:%28563%29%20726-0371" value="+15637260371" target="_blank">(563) 726-0371</a></div>
<div>>>>> >> ></div><div>>>>> >> > [image: Noppix LLC Logo]</div><div>>>>> >> > On 06/17/2013 09:36 AM, Janet Valbuena wrote:</div><div>>>>> >> ></div>
<div>>>>> >> > Hi</div><div>>>>> >> ></div><div>>>>> >> > I'm new to nginx. I'm trying to configure a virtual server.</div><div>>>>> >> ></div>
<div>>>>> >> > I've created a new server file under sites-enabled like this:</div><div>>>>> >> ></div><div>>>>> >> > server {</div><div>>>>> >> > listen 80; ## listen for ipv4; this line is default and implied</div>
<div>>>>> >> ></div><div>>>>> >> > server_name blogtest;</div><div>>>>> >> ></div><div>>>>> >> > root /usr/share/nginx/cakephptest/app/webroot;</div>
<div>>>>> >> > index index.php;</div><div>>>>> >> ></div><div>>>>> >> > location / {</div><div>>>>> >> > # First attempt to serve request as file, then</div>
<div>>>>> >> > # as directory, then fall back to 404</div><div>>>>> >> > try_files $uri $uri/ =404;</div><div>>>>> >> > }</div><div>
>>>> >> > # PHP FPM</div><div>>>>> >> > location ~ \.php$ {</div><div>>>>> >> > fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;</div>
<div>>>>> >> > fastcgi_index index.php;</div><div>>>>> >> > include fastcgi_params;</div><div>>>>> >> > fastcgi_intercept_errors on;</div>
<div>>>>> >> > fastcgi_buffers 8 16k;</div><div>>>>> >> > fastcgi_buffer_size 32k;</div><div>>>>> >> > fastcgi_split_path_info ^(.+\.php)(/.+)$;</div>
<div>>>>> >> > fastcgi_param PATH_INFO $fastcgi_path_info;</div><div>>>>> >> > fastcgi_param PATH_TRANSLATED</div><div>>>> >> $document_root$fastcgi_path_info;</div>
<div>>>>> >> > fastcgi_param SCRIPT_FILENAME</div><div>>>>> >> > $document_root$fastcgi_script_name;</div><div>>>>> >> > }</div><div>>>>> >> > }</div>
<div>>>>> >> ></div><div>>>>> >> ></div><div>>>>> >> > Is there anything wrong with that?</div><div>>>>> >> > When I type in blogtest/index.php on the browser I get the default</div>
<div>>>>> >> > config, which points to /usr/share/nginx/www/, even though I deleted the</div><div>>>>> >> > symbolic link to sites-available/default from sites-enabled.</div><div>
>>>> >> ></div><div>>>>> >> > Note: /usr/share/nginx/cakephptest/app/webroot/index.php does exist.</div><div>>>>> >> ></div><div>>>>> >> > Could anyone please help.</div>
<div>>>>> >> ></div><div>>>>> >> > Thanks</div><div>>>>> >> ></div><div>>>>> >> > JV</div><div>>>> >></div><div>>> ></div>
<div>>> > _______________________________________________</div><div>>> > nginx mailing list</div><div>>> > <a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a></div><div>>> > <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></div>
<div>>> ></div></div></div><div>> -- [image: WiFi SPARK] [image: Facebook] <<a href="http://facebook.com/wifispark" target="_blank">http://facebook.com/wifispark</a>> [image: Twitter]<<a href="http://twitter.com/wifispark" target="_blank">http://twitter.com/wifispark</a>> *Janet Valbuena* Software Developer *t:* 0844 848 9555 | *f: *01626 834 745 *w: *<a href="http://wifispark.com" target="_blank">wifispark.com</a> <<a href="http://www.wifispark.com/" target="_blank">http://www.wifispark.com/</a>> WiFi SPARK Ltd, Teignbridge Business Centre, Cavalier Road, Newton Abbot, Devon, TQ12 6TZ 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <<a href="http://mailman.nginx.org/pipermail/nginx/attachments/20130617/89980779/attachment-0001.html" target="_blank">http://mailman.nginx.org/pipermail/nginx/attachments/20130617/89980779/attachment-0001.html</a>></div>
<div><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>