I want a server blocks for my mobile app which means that i don’t need a domain. I would like to use my ipaddress instead. Does anyone know how to do this
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank you so much for this response. I however, intend to also host a site on it in the future. Hope I won’t have a problem then?
Hello,
If you are going to host only one application then you could just use the default Nginx config file and add your rules there. The location should be at: /etc/nginx/sites-enabled/.
That way when you access your droplet’s IP address you would be seeing the content specified by the rules of this default config.
Hope that this helps. Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.