Re: newbie needs help

2013-05-30 Thread angelochen960
that works, thanks. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239683,239699#msg-239699 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: newbie needs help

2013-05-30 Thread Valentin V. Bartenev
On Thursday 30 May 2013 16:25:18 angelochen960 wrote: > Thanks for the reply, it works, and also I read again those references. a > related issue, say: > > if somebody enter this url in the browser: http://sample.com/not_exist_url > > and I'd like to redirect it to > > http://sample.com/ > > w

Re: newbie needs help

2013-05-30 Thread angelochen960
Thanks for the reply, it works, and also I read again those references. a related issue, say: if somebody enter this url in the browser: http://sample.com/not_exist_url and I'd like to redirect it to http://sample.com/ with the try_files approach, index.html got displayed, that's right, but th

newbie needs help

2013-05-30 Thread angelochen960
Hi, new in ths nginx, with following config, I want to achieve: http://sample.com/ render index.html http://sample.com/test, or anything after '/' path, render index.html server { listen 80; server_name sample.com ; root /var/www/sample/public_html; location / {