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.
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.
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.