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

422
Vistas
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 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