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

727
Visualizações
how to set up reverse proxy server using XAMPP in windows

I am trying to set up a reverse proxy server in XAMPP to avoid the CORS error which occurs when i try to access an API running on a different port. I have made these changes to my files.

The details of the API are:

  • host=http://127.0.0.1
  • port=8002

httpd-vhosts.conf

<VirtualHost *:8002>
    ProxyRequests On
    <Proxy>
        Order deny,allow
        Allow from all
    </Proxy>
    Header set Access-Control-Allow-Origin "*"
</VirtualHost>

httpd-proxy.conf

<IfModule proxy_module>
<IfModule proxy_http_module>

#
# Reverse Proxy
#
ProxyRequests Off

<Proxy *>
      Require all granted
</Proxy>

</IfModule>
</IfModule>

httpd.conf

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so

When I start my Apache server, it does not start and throws an error:

Error: Apache shutdown unexpectedly.

15:00:12  [Apache]  This may be due to a blocked port, missing dependencies, 
15:00:12  [Apache]  improper privileges, a crash, or a shutdown by another method.
15:00:12  [Apache]  Press the Logs button to view error logs and check
15:00:12  [Apache]  the Windows Event Viewer for more clues
15:00:12  [Apache]  If you need more help, copy and post this
15:00:12  [Apache]  entire log window on the forums

Should I continue with XAMPP or use nginx for setting up reverse proxy?

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