title: I am getting "Invalid command 'WSGIScriptAlias' " error while starting Apache
body: <p>I want to deploy my Django project to EC2 server. I installed mod_wsgi. </p>
  
  <p>And made configuration like in the tutorial of django.</p>
  
  <p>I am getting the following:</p>
  
  <pre><code>Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the server configuration
  </code></pre>
  
  <p>What is the reason? mod_wsgi is not installed correctly?</p>
  
  <pre><code>LoadModule wsgi_module     libexec/httpd/mod_wsgi.so
  LoadModule alias_module    libexec/httpd/mod_alias.so
  
  
  WSGIScriptAlias / /usr/local/apache2/htdocs/mysite/mysite/wsgi.py
  WSGIPythonPath /usr/local/apache2/htdocs/mysite/mysite
  
  
  &lt;Directory /path/to/mysite.com/mysite&gt;
  &lt;Files wsgi.py&gt;
  Order deny,allow
  Allow from all
  &lt;/Files&gt;
  &lt;/Directory&gt;
  </code></pre>