Following the tutorial here (https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean) i was able to connect domain to my droplet but the issue here is when i navigate to www.careervacancy.com it load the page but when i try http://careervacancy.com, it load Apache home page, Below are the configuration,
A @ xxx.xxx.xx.xx CNAME www careervacancy.com CNAME * careervacancy.com
here is my conf file
VirtualHost *:80>
ServerName careervacancy.com
ServerAdmin info@careervacancy.com
ServerAlias www.careervacancy.com
WSGIScriptAlias / var/www/FlaskApp/flaskapp.wsgi
<Directory /var/www/FlaskApp/static>
Order allow,deny
Allow from all
</Directory>
Alias /static /var/www/FlaskApp/static
<Directory /var/www/FlaskApp/static/>
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Please, whats missing? 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!
In your VHOST you need to configure your root website folder. So add the following and modify it to your needs:
DocumentRoot /var/www/mywebsite
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.