Giter Site home page Giter Site logo

Comments (3)

shanealynn avatar shanealynn commented on August 21, 2024

Hi Logixor, there may be some mix up here between your use of Apache and Flask. You can think of these as two different web servers.

Apache is running on port 80, and serving the static files in your /var/www folder - but this is not how you access the flask application.

Flask is running on port 5000, and you'll need to access this on this port (or you can look up setting up a "proxy" to user apache on port 80). But for now, I would open up port 5000 on your Ec2 security group, and try to navigate to http://ec2-XX-XX-XXX-XXX.eu-north-1.compute.amazonaws.com:5000 in your browser. Monitor the output from the flask app when you do this to see if you get a connection attempt.

from async_flask.

Logixor avatar Logixor commented on August 21, 2024

Thanks for the update :)

I have opened the port, but the result is still the same.

Does it matter where the project is?, I mean:
in /var/www/
in /var/www/html/
or in /var/www/html/async_flask/

from async_flask.

shanealynn avatar shanealynn commented on August 21, 2024

If this is still an issue you, may need to put specific rules in your apache setup to route /socket requests.

from async_flask.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.