[Django]-Django + Apache deployment on Ubuntu

3👍

You need to run sudo a2ensite dynamics to enable the dynamics conf (or you can manually symlink it to sites-enabled), then restart Apache with sudo /etc/init.d/apache2 restart.

Edit Looks like the other problem is that you’re trying to associate your virtualhost with a domain name that doesn’t exist and isn’t associated with your machine, ie dynamics. If you want to access it like that, you’ll need to edit your /etc/hosts to point that name to your localhost: add this line to that file:

127.0.0.1    dynamics

Don’t forget, this is just a hack for your machine. For real deployment, you’d need a proper domain name that is resolvable via DNS.

1👍

Did you check your local hosts file from the following path which contains the ‘dynamics’ as a localhost?

File Location: /etc/hosts

127.0.0.1   localhost
127.0.1.1   dynamics

Leave a comment