By dinapino
My website was opening only using IP after i recreated a droplet using snapshot, then i configured the sudo nano /etc/apache2/sites-available/000-default.conf (created i new file) input the lines requested by this tutorial
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04
where it says to input this:
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ServerName server_domain_name_or_IP <Directory /var/www/html/> AllowOverride All </Directory> . . . (i didnt input the “…”)
meanwhile i remembed a friend told me to recreate the DNS records in digitalocean droplet to this way the new IP would propagate properly then i did.
then i did this in putty: and used these commands afterwards: sudo a2ensite newnewnew-default.conf sudo a2dissite 000-default.conf
now my website have this error:
This webpage has a redirect loop
ERR_TOO_MANY_REDIRECTS
The webpage at http://mydomain.com/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Also i have this error in putty:
service apache2 reload
p.s(how i see the log)? Thanks.
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!
Your configuration has an opening <VirtualHost *:80> tag so it must close that tag by ending with </VirtualHost>
Because of this your changes are not being picked up.
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.