Configuring virtual dev server - Apache question

I recently set up a droplet on DO using Ubuntu. I have installed the full LAMP stack and would now like to use this server for collaborative virtual development.

Is it possible to use this server without DNS configuration? I would like to point my hosts file at the IP address of my DO virtual server and access development apps through the browser.

If so, what steps do I need to complete on the server side? Are there special vhost configurations to make on the DO virtual server?

Thanks so much for your help :-)


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Best way is to create a sub-domain and point the A-record to this droplet’s IP. For safety, you may choose to protect your server with a .htpasswd security!

– Regards Saurabh Managed Cloud Hosting For PHP Applications On DigitalOcean IaaS

You don’t need to setup DNS or anything special on DO, you can just browse to the IP address in the browser or edit your hosts file as you said and make the IP address go to a name of your choice.