By Curt Carlson
So I have a perfectly working site that uses a couple of subdomains. I am upgrading to a new version of the site, so I saved a snapshot, and made a new droplet from that snapshot. I updated the DNS records, reinstalled the certificate, I replaced the IP in the config files, I restarted apache, and then for good measure restarted the droplet. Also pulled my code.
The problem is that the redirects aren’t working. My home page just shows the apache welcome page. The site uses subdomains and I verified all of that configuration copied over. I literally went through every step from when I created the droplet from scratch originally, traced through it, and verified it. Yet all I get is the apache welcome page when I visit a subdomain.
I am kind of frustrated because searching hasn’t yielded anything thus far. Is there a common gotcha that I am missing here?
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!
For anyone that comes across this, I had go to /etc/apache2/sites-avilable and copy the redirect virtual host entires for port 80 into the normal site config files, then restart apache.
Sorry, by redirects I mean virtual hosts. I can’t figure out how to edit the OP.
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.