Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

315
Vistas
Using nginx as my server and running a simple flask app. Can i configure nginx to serve flask and non flask urls?

It seems my site has to be all flask, is there a configuration setting in nginx that will allow me to just throw a temp page up, and is not routed to flask?

Like someone that has no flask knowledge, they just want to put up a simple page. Yes, it can be all done under flask, just wondering does it have to be? Is it all or none? Everything routes to flask now.

Summary: Can i have a flask and a non flask site running at the same time? Or maybe I can configure flask to point to a sandbox directory?

Pondering this. thanks

enter image description here enter image description here

Latest site-available changes - not finding this directory:

enter image description here

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

If I understood your question, you want nginx to handle some resources directly.

You need a static route, using root, like

location /static {
            root /home/ubuntu/example/example;
    }   

and let the others locations be handled by the proxy.

I have a nginx/uwsgi/flask configuration tutorial but unfortunately its only in spanish.

over 4 years ago · Santiago Trujillo Denunciar

0

Got it!

No editing needed. Just put anything you want to serve in static, and have that in the url.

Understanding now static files can be anything.

Guess was not clear on what "static" meant. And can edit that in the config file if want to have a clean url.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda