0

I have 2 apps made in Flask, an API which gets and sends data from an sqlite database. And a Flask web app with a jinja template in a template folder. i want to run both the api and web app on an apache server, preferably at 2 different paths on the site. so for the app i'd want /reservations and the api /api. ive tried doing this with WSGI on the Apache Ubuntu server, and making 2 different .wsgi files for each application, and pointing to those in the /available-sites/default.conf. so i visit the webpage at x.x.x.x/reservations and the Web App works fine and shows the page properly, with the data showing successfully which it pulled from the database through the API. but when i try to curl the API by itself at x.x.x.x/api/rooms (function to show all the data within the rooms table) i get a 404. the app and API are running on different ports so that couldnt be the issue.

so i'm wondering if it is even possible to run 2 apps like this through wsgi. thanks in advance.

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Apr 8 at 9:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.