Re: virtual server configuration

Hi Janet,

It is weird then
Once you remove the ‘default’ symlink and reload the config, the old
configuration should no longer take effect.

Have you tried refreshing your browser after restarting/reloading nginx?
I’m suspecting the old index page was cached by your browser

Best regards,
Wong Kee W.

On 18/6/2013 3:59 AM, [email protected] wrote:

I installed nginx recently and haven’t changed anything in nginx.conf.

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

types_hash_max_size 2048;
##

# nginx-naxsi config
##

}

On 17 June 2013 15:48, Sajan P. [email protected] wrote:

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
[image: Noppix LLC Logo]
On 06/17/2013 09:36 AM, Janet Valbuena wrote:

Hi

I’m new to nginx. I’m trying to configure a virtual server.

I’ve created a new server file under sites-enabled like this:

server {
listen 80; ## listen for ipv4; this line is default and
implied
}
fastcgi_param PATH_TRANSLATED
$document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}
}

Is there anything wrong with that?
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.

Note: /usr/share/nginx/cakephptest/app/webroot/index.php does
exist.
[email protected]
nginx Info Page

– [image: WiFi SPARK] [image: Facebook] http://facebook.com/wifispark
[image: Twitter]http://twitter.com/wifispark Janet Valbuena Software
Developer t: 0844 848 9555 | *f: *01626 834 745 *w: *wifispark.com <
http://www.wifispark.com/> 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: <
http://mailman.nginx.org/pipermail/nginx/attachments/20130617/89980779/attachment-0001.html

Hi Wong, hi Vasil

I did restart nginx and reloaded the browser while I was setting up this
virtual server yesterday several times.

Strangely, this morning when I started my computer all worked well.
Maybe I
needed to restart the network or something else?

Thanks very much for your help.

Janet

On 18 June 2013 06:34, Wong Kee W. [email protected] wrote:

Wong Kee W.

worker_processes 4;
# Basic Settings
# server_name_in_redirect off;

# gzip_buffers 16 8k;

Thanks
your

nginx -t
Run

p: (563) 726-0371
server {
# as directory, then fall back to 404
fastcgi_split_path_info ^(.+.php)(/.+)$;
When I type in blogtest/index.php on the browser I get the
Thanks
[image: Twitter]http://twitter.com/wifispark Janet Valbuena Software
URL: <

http://mailman.nginx.org/pipermail/nginx/attachments/20130617/89980779/attachment-0001.html


nginx mailing list
[email protected]
nginx Info Page


[image: WiFi SPARK]
[image: Facebook] http://facebook.com/wifispark [image:
Twitter]http://twitter.com/wifispark
Janet Valbuena
Software Developer
t: 0844 848 9555 | *f: *01626 834 745
*w: *wifispark.com http://www.wifispark.com/

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.