Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
XAMPP Proxy Server Config
1. Open /Applications/XAMPP/etc/httpd.conf
2. Enable the following Modules by removing the # at the front of the line.
- LoadModule rewrite_module modules/
- LoadModule proxy_module modules/
- LoadModule proxy_http_module modules/
3. Copy and Paste below to the bottom of httpd.conf
# Implements a proxy/gateway for Apache.
## Required modules: mod_proxy, mod_proxy_http
<IfModule mod_proxy.c>
# Reverse Proxy
ProxyRequests On
<Proxy *>
Order deny,allow
Allow from all
ProxyVia On
ProxyPass /api/
ProxyPassReverse /api/
ProxyPreserveHost On
## /api/ == http://localhost/api/
## if you access http://localhost/api/ it should access
Copy link

Configuration may not be suitable to write in httpd.conf file. I prefer to write redirection configurations on httpd-vhosts.conf file. But I benefited from your file. Thanks so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment