How do I get the LAMP Stack one-click app to use my domain?

Posted October 8, 2017 3.7k views
ApacheLAMP StackNetworkingDNSDigitalOcean 1-Click Apps MarketplaceUbuntu 16.04

I added a LAMP stack one-click app droplet on Digital Ocean, directed my A record on Gandi to point “@” and “www” to the IP and ran Let’s Encrypt to get SSL certificated for and (my domain). takes me to the default LAMP stack page (although it doesn’t auto-redirect as I specificed in the LE setup, for some reason) but “” gives the error “’s server DNS address could not be found.” What can I do to fix both the auto-redirect to https not working and the URL not working?

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.

Submit an Answer
1 answer


I would recommend adding an Apache Vhost for your domain name and then running the LE installation, here’s a step by step guide on how to do that:

Hope that this helps!

by Brennen Bearnes
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 16.04 server.