events {} http { # what times to include # include /etc/nginx/mime.types; # what is the default one #default_type application/octet-stream; # Sets the path, format, and configuration for a buffered log write #log_format compression '$remote_addr - $remote_user [$time_local] ' #'"$request" $status $upstream_addr ' #'"$http_referer" "$http_user_agent"'; server { listen 80; root /usr/share/nginx/html; index index.html; location / { # First attempt to serve request as file, then # as directory, then fall back to redirecting to index.html try_files $uri $uri/ $uri.html /index.html; } } }