server { listen 80; server_name _; root /usr/share/nginx/html; index install.sh; # Serve the installer at the root path location = / { try_files /install.sh =404; default_type text/plain; } # Ensure install.sh is served as text location = /install.sh { default_type text/plain; } }