newbie needs help

angelochen960 nginx-forum at
Thu May 30 10:02:00 UTC 2013

new in ths nginx, with following config, I want to achieve:   render index.html, or anything after '/' path, render index.html

server {
    listen          80;
    server_name ;
    root /var/www/sample/public_html;

   location  / {
        index  index.html index.htm;

   location ~ ^/.* {
        index index.html;


but when I do this, and got 404 error, anything missing here? Thanks Angelo

 curl -I

 HTTP/1.1 404 Not Found

Posted at Nginx Forum:,239683,239683#msg-239683

More information about the nginx mailing list