My website url is: http://collegeadviser.in/ It is reachable using droplet ip address but not working with the domain name.
Nameservers set at GoDaddy are: ns1.digitalocean.com ns2.digitalocean.com ns3.digitalocean.com
DNS records at DO:
Type: A Hostname: *.collegeadviser.in Value: 139.59.31.108
Type: A Hostname: collegeadviser.in Value: 139.59.31.108
Type: CNAME www is an alias of collegeadviser.in
Help please!
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!
Please post your virtual host so we can make sure your settings are correct.
If using apache2 web server you can find it here /etc/apache2/sites-enabled
and if using nginx you can find it here /etc/nginx/sites-enabled
thanks.
First install Nano
sudo apt-get install nano
Then use this command to make a new file in the /etc/apache2/sites-available directory.
sudo nano /etc/apache2/sites-available/collegeadviser.in.conf
Then this is one of many examples on the Apache documentation which you can edit to meet you needs.
<VirtualHost *:80>
ServerName collegeadviser.in
ServerAlias www.collegeadviser.in
ServerAdmin webmaster@localhost
DocumentRoot /var/www/collegeadviser.in
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Once you’ve saved that using nano then type
a2ensite
From there you should see your domain in the list and then you type that domain you want to add to sites-enabled. You will also want to restart or reload the apache2 service after you have done that step by
sudo service apache2 restart
Now you should have a working site on both www and non www
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.