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

638
Visualizações
Reverse proxy in XAMPP ( on Windows ) to listen to internal port 3000 ( Node js server )

First of all I am going to describe how my app works. I have a Vuejs powered ( using Quasar ) for the Front-End that needs to use SSR, so it will run on the server and as for the Back-End I am using a Laravel only as an API.

I am developing a SSR (Server Side Rendered) application using Quasar Framework. Basically I run the command quasar build --mode ssr which creates a folder dist/ssr/ where you need to go and run the following command npm run start which starts the application on the server side on localhost:3000 using Nodejs.

So my backend currently exists under http://localhost/api

The problem is that the js app runs under http://localhost:3000 and I need to have something like this http://localhost/app which actually must listen to internal port 3000, so I need to make a Reverse Proxy.

Update 1: Found out this video on youtube https://www.youtube.com/watch?v=_lPZjDL7ilU that done the trick but there are still issues. The reverse proxy worked by adding the following line in httpd.conf

ProxyPass /app http://localhost:3000/

Also make sure mod_proxy and http mode proxy are enabled. Everything works exect all the assets, for example:

Request URL: http://localhost/js/7.42617aaa.js Which should resolve to: http://localhost/app/dist/ssr/www/js/7.42617aaa.js I THINK

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