0

I am having issues trying to deploy my site,.I am still new in both Django , their is a tutorial I have been following on how to deploy the site, Everything works fine except it renders the default Apache page instead of my site when I restart the server.

Here is my project directory

Alias /static /home/brian/src/static
  <Directory /home/brian/src/static>
    Require all granted
  </Directory>

  Alias /media /home/brian/src/media
  <Directory /home/brian/src/media>
    Require all granted
  </Directory>

  <Directory /home/brian/src/src>
    <Files wsgi.py>
      Require all granted
    </Files>
  </Directory>

  WSGIScriptAlias / /home/brian/src/src/wsgi.py
  WSGIDaemonProcess django_app python-path=/home/brian/src python-home=/home/brian/src/venv
  WSGIProcessGroup django_app
O'Bryan
  • 11
  • 6
  • is `django_app` in `WSGIDaemonProcess` the domain name of your site? – dirkgroten Jan 13 '20 at 14:26
  • Did you read [this](https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/modwsgi/#using-mod-wsgi-daemon-mode)? you're missing the `process-group` directive in your `WSGIScriptAlias`. – dirkgroten Jan 13 '20 at 14:30
  • @dirkgroten django_app is just a process,it snot my domain name – O'Bryan Jan 13 '20 at 14:35
  • the fact that it's showing the apache home page shows that it's not reaching this part of your configuration at all. Is this inside of a `` tag with the `ServerName` set to the domain? – dirkgroten Jan 13 '20 at 14:42
  • Its in my ln /etc/apache2/sites-available/blog.conf directory aand yes its within the tag – O'Bryan Jan 13 '20 at 14:49
  • I dont have my servername set,I was following it from a tutorial so I followed what he did – O'Bryan Jan 13 '20 at 14:57
  • I think sites-available isn't enough, you need to symlink to it in sites-enabled – dirkgroten Jan 13 '20 at 15:32
  • can you kindly show me how to go abut this or provide a link,I am new here – O'Bryan Jan 13 '20 at 16:16
  • https://stackoverflow.com/questions/21812360/what-is-the-difference-between-sites-enabled-and-sites-available-directory – dirkgroten Jan 13 '20 at 16:20

0 Answers0