server { listen 8080; root /usr/share/nginx/html; index index.html; server_name _; location / { return 302 http://$host:$server_port$uri; } }