title: 404 Requested URL Not Found ( flask app on apache)
body: <p>I deployed my flask web application on apache web server via <strong>mod_wsgi</strong> on windows server. I have used WSGIScriptAlias directive. When I try to run the url, I am able to view only the index/first page. When trying to hit post methods, I am unable to navigate to other url routes I have given in flask. 
  It displays:-
  Not Found
  The requested URL /login was not found on this server.</p>
  
  <p>I have also not configured virtual host in my httpd.conf file. I have used only the alias code as below:</p>
  
  <pre><code>&lt;Directory "C:/Users/mypath/flask_phase2"&gt;
  Require all granted
  &lt;/Directory&gt;
  WSGIScriptAlias /flasktest "C:/Users/mypath/flask_phase2/landingpage.wsgi"
  
  Alias "/static/" "C:/Users/mypath/flask_phase2/static/"
  &lt;Directory "C:/Users/mypath/flask_phase2/static/"&gt;
  Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>And my landingpage.wsgi code is as below:</p>
  
  <pre><code>import sys
  sys.path.insert(0,"C:/Users/mypath/flask_phase2")
  from landingpage import app as application
  </code></pre>
  
  <p>Can someone suggest me with a solution to this problem with this approach or is it necessary to configure virtualhost to make apache server to display all html,static pages as given in the post url method routes in the flask application? </p>
  
  <p>Thanks. Appreciate your help.</p>