Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

313
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda