My website URL with www shows the correct content but shows the Apache2 Ubuntu Default page without www. How do I correct this?

Solution

            ServerName www.mywebsite.com
            ServerAlias mywebsite.com
            ServerAdmin admin@mywebsite.com
            WSGIScriptAlias / /var/www/FlaskApp/flaskapp.wsgi
            
                    Order allow,deny
                    Allow from all
            
            Alias /static /var/www/FlaskApp/FlaskApp/static
            
                    Order allow,deny
                    Allow from all
            
            ErrorLog ${APACHE_LOG_DIR}/error.log
            LogLevel warn
            CustomLog ${APACHE_LOG_DIR}/access.log combined