server { listen 4200; server_name localhost; root /opt/opengnsys/oggui/browser; index index.html; location / { try_files $uri $uri/ /index.html; } # Manejo de archivos estáticos location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { try_files $uri =404; } # Configuración para evitar problemas con rutas de Angular error_page 404 /index.html; }