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

October 8, 2017 1.8k views
DNS Apache Networking Ubuntu 16.04 LAMP Stack One-Click Install Apps

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?

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.
Have another answer? Share your knowledge.