title: How to deploy Flask Web in Python2.7 32bit on the 64bit Windows 10
body: <p>I wanna deploy my flask web project on my Windows 10 OS, I choose Apache2.4 and mod_wsgi to deploy it.
  The environment is shown as below:</p>
  
  <ol>
  <li>python 2.7 32bit</li>
  <li>window10 64bit</li>
  <li>mod_wsgi‑4.4.23+ap24vc9‑cp27‑cp27m‑win32.whl </li>
  <li>apache2.4 V9 32bit</li>
  </ol>
  
  <p>I follow the common steps(shows in <a href="http://csparpa.github.io/blog/2013/03/how-to-deploy-flask-applications-to-apache-webserver.html" rel="nofollow noreferrer">enter link description here</a>)</p>
  
  <p>step1. download apache2.4 32 bit complied by VC9 </p>
  
  <p>step2. download mod_wsgi 4.3 32 bit complied by VC9</p>
  
  <p>step3. put the mod_wsgi.so in the directory mod_wsgi/data/ in the the directory Apache24/modules</p>
  
  <p>step4. modify the config file(like port no and path) and add:</p>
  
  <pre><code>LoadModule wsgi_module modules/mod_wsgi.so
  </code></pre>
  
  <p>step5. add the path of my web project in the http.conf file:</p>
  
  <pre><code>&lt;VirtualHost *&gt;
  &lt;Directory D:/developer/workspace_python_web/test&gt; 
  Order allow,deny 
  Allow from all 
  &lt;/Directory&gt; 
  WSGIScriptAlias /flasktest     D:/developer/workspace_python_web/test_for_deploy/test.wsgi
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>step5. command: http -k install
  step6. command: http -k start</p>
  
  <p>At last, apache always throws errors like this:</p>
  
  <pre><code>httpd.exe: Syntax error on line 129 of D:/Apache22/conf/httpd.conf: Cannot load D:/Apache22/modules/mod_wsgi.so into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3     .
  </code></pre>
  
  <p>I don't know why...</p>