Connecting domain to droplet issue

December 17, 2015 1.9k views
Python Apache DNS

Following the tutorial here ( i was able to connect domain to my droplet but the issue here is when i navigate to it load the page but when i try, it load Apache home page, Below are the configuration,

A @

here is my conf file

VirtualHost *:80>
                WSGIScriptAlias / var/www/FlaskApp/flaskapp.wsgi
                <Directory /var/www/FlaskApp/static>
                        Order allow,deny
                        Allow from all
                Alias /static /var/www/FlaskApp/static
                <Directory /var/www/FlaskApp/static/>
                        Order allow,deny
                        Allow from all
                ErrorLog ${APACHE_LOG_DIR}/error.log
                LogLevel warn
                CustomLog ${APACHE_LOG_DIR}/access.log combined

Please, whats missing? Thanks

  • The VHOST should work, did you restart Apache after modifying?
    And whats the outpur in the apacheerror.log? Most of the time you willl find usefull info in there.

  • Thanks @CrypticDesigns, i've checked, no error... both pages are loading but the problem is they are loading different content, CAREERVACANCY.COM is loading Apache Index Page while WWW.CAREERVACANCY.COM is loading main content, How do i change the Apache index page to the main content???

1 Answer

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
Have another answer? Share your knowledge.