Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Helloworld client

  • Served at /helloworld/
  • An static HTML/CSS/javascript user interface

Pages

Home

  • Routed at /helloworld/

Adder

  • Routed at /helloworld/adder.html

Write

  • Routed at /helloworld/write.html

404 Page

  • Every 404 error redirects to this page (If request accepts HTML response)

Serve staticly on nginx

  • Add following configurations to nginx server (Change </path/to/helloworld/root/dir> to absolute path of client directory):

    location /helloworld {
      alias </path/to/helloworld/root/dir>;
      index helloworld.html;
    }
    
    error_page 404 /helloworld/404.html;
  • Restart Nginx service:

> sudo systemctl restart nginx