title: FlaskApp and Website running on the same ubuntu server
body: <p>I am working on an Ubuntu EC2 server. I have a website hosted here. For a mobile application i was suggested to use an api to send or receive data in JSON format.
  I could find multiple solutions in the internet. Which has got me confused.</p>
  
  <p>Kindly clarify the below questions.</p>
  
  <p>How do i run the flask app and a website from the same server?
  The solution i used seems to disable my website and gives me error 500.
  <a href="https://www.datasciencebytes.com/bytes/2015/02/24/running-a-flask-app-on-aws-ec2/" rel="nofollow noreferrer">https://www.datasciencebytes.com/bytes/2015/02/24/running-a-flask-app-on-aws-ec2/</a></p>
  
  <p>How can i reconfigure my server to specifically respond for mobile devices?
  What should be the server set up 
  The current setup i used in the sites-enabled is as below</p>
  
  <pre><code>    WSGIDaemonProcess flaskapp threads=5
      WSGIScriptAlias / /var/www/html/flaskapp/flaskapp.wsgi
  
      &lt;Directory flaskapp&gt;
       WSGIProcessGroup flaskapp
       WSGIApplicationGroup %{RESOURCE}
       Order deny,allow
       Allow from all
       &lt;/Directory&gt;
  </code></pre>
  
  <p>What would be the change necessary?</p>