server { listen 80; server_name localhost; location / { return 301 /repo/; } location /repo/ { root /repo; index index.html; } }