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

417
Visualizações
Sonarqube with Nginx sub-location not loading js/css files

When I am trying to access SERVER_IP:9000 from browser, sonarqube is loading perfectly fine.

Whereas for SERVER_IP/sonarqube, I am getting this error:

Failed to load resource: the server responded with a status of 404 (Not Found) vendors-main.m.428bef42.chunk.js:1

Error image

Here is my nginx.conf file:

worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include             mime.types;
    default_type        application/octet-stream;
    sendfile            on;
    keepalive_timeout   65;

    server {
        listen 80;

        location / {
            #root       html;
            #index      index.html index.htm;
            proxy_pass  http://localhost:8080/;
        }

        location = /sonarqube {
            proxy_pass  http://localhost:9000/;
        }

        error_page      500 502 503 504  /50x.html;
        location = /50x.html {
            root        html;
        }

        location ~ \.css {
            add_header  Content-Type    text/css;
        }
        location ~ \.js {
            add_header  Content-Type    application/x-javascript;
        }
    }
}

Any help will be appreciated. Thank you.

over 4 years ago · Santiago Trujillo
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