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

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