Question

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

Posted October 8, 2017 2k views
Apache LAMP Stack Networking DNS One-Click Install Apps Ubuntu 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 www.pellux.net and pellux.net (my domain). www.pellux.net 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 “pellux.net” gives the error “pellux.net’s server DNS address could not be found.” What can I do to fix both the auto-redirect to https not working and the pellux.net 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.

1 answer

Hello,

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:

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04

Hope that this helps!
Regards,
Bobby

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.
Submit an Answer