title: Serving static files while running Django&mod_wsgi on Apache 2.2
body: <p>I have changed my Apache 2.2's httpd.conf</p>
  
  <pre><code>#Serve static files
  Alias /static/ "E:\Python\Django\carlsblog\static\"
  &lt;Directory "E:\Python\Django\carlsblog\static"&gt;
  Order allow,deny
  Options Indexes
  Allow from all
  IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  #Start mod_wsgi as default handler
  WSGIScriptAlias / "E:\Python\Django\carlsblog\django.wsgi"
  
  &lt;Directory "E:\Python\Django\carlsblog"&gt;
  Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>and my app can be successfully run, only the static files cannot be accessed, a 404 is thrown by Django</p>
  
  <p>However, if I change this line</p>
  
  <pre><code>Alias /static/ "E:\Python\Django\carlsblog\static\"
  </code></pre>
  
  <p>into </p>
  
  <pre><code>Alias /static/ "E:\Python\Django\carlsblog\static"
  </code></pre>
  
  <p>the index page of the static folder can be seen, but the files cannot be reached. When I checked Apache's error log at this time, I found something like this:</p>
  
  <pre><code>File does not exist "E:\Python\Django\carlsblog\staticmy_static_file.txt"
  </code></pre>
  
  <p>it seems there's a "\" missing, anyone has an idea on fixing this?</p>