title: Apache + Django on Windows does not start
body: <p>I am trying to set up Apache with Django on Windows but it does not seem to work.</p>
  <p>My settings.py</p>
  <pre><code>ALLOWED_HOSTS = ['localhost', '127.0.0.1']
  </code></pre>
  <p>My wsgi.py</p>
  <pre><code>
  import os
  import sys
  from django.core.wsgi import get_wsgi_application
  from pathlib import Path
  
  # Add project directory to the sys.path
  path_home = str(Path(__file__).parents[1])
  if path_home not in sys.path:
      sys.path.append(path_home)
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'mrt.settings'
  
  application = get_wsgi_application()
  
  </code></pre>
  <p>My httpd.conf</p>
  <pre><code>Listen 30080
  Listen 8080
  
  
  LoadFile &quot;C:/Users/user/AppData/Local/Programs/Python/Python37/python37.dll&quot;
  LoadModule wsgi_module &quot;c:/users/user/pycharmprojects/djangoapi/venv/lib/site-packages/mod_wsgi/server/mod_wsgi.cp37-win_amd64.pyd&quot;
  WSGIPythonHome &quot;c:/users/user/pycharmprojects/djangoapi/venv&quot;
  WSGIPythonPath &quot;c:/users/user/pycharmprojects/djangoapi/venv/Lib/site-packages&quot;
  
  </code></pre>
  <p>My httpd-vhosts.conf</p>
  <pre><code>
  &lt;VirtualHost *:30080&gt;
      ServerName localhost
      WSGIPassAuthorization On
      ErrorLog &quot;c:/users/user/pycharmprojects/djangoapi/mrt/logs/apache.error.log&quot;
      CustomLog &quot;c:/users/user/pycharmprojects/djangoapi/mrt/logs/apache.access.log&quot; combined
      WSGIScriptAlias /  &quot;c:/users/user/pycharmprojects/djangoapi/mrt/mrt/wsgi.py&quot;
      &lt;Directory &quot;c:/users/user/pycharmprojects/djangoapi/mrt/mrt&quot;&gt;
          &lt;Files wsgi.py&gt;
              Require all granted
          &lt;/Files&gt;
      &lt;/Directory&gt;
  
      Alias /static &quot;c:/users/user/pycharmprojects/djangoapi/mrt/static&quot;
      &lt;Directory &quot;c:/users/user/pycharmprojects/djangoapi/mrt/static&quot;&gt;
          Require all granted
      &lt;/Directory&gt;  
  &lt;/VirtualHost&gt;
  
  
  </code></pre>
  <p>I have tried to open http://localhost:30080/ but it says the website is not reachable.
  I also have tried to change Ports to *8080 but without any effect, no error appears in logs, they are empty. Without Django config Apache works. Syntax is Ok.</p>