iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
Apache becomes a reverse proxy when it accepts public requests and forwards them to an application server, then returns the application’s response. For a typical HTTP backend on 127.0.0.1:8080, enable mod_proxy and mod_proxy_http, keep ProxyRequests Off, and pair every ProxyPass mapping with ProxyPassReverse.
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
ProxyPass "/" "http://127.0.0.1:8080/"
ProxyPassReverse "/" "http://127.0.0.1:8080/"
This guide explains how the directives differ, how to proxy only a subpath, which protocol modules each backend needs, how to handle WebSockets and multiple backends, and how to avoid the configuration mistakes that expose an open proxy or break redirects.
Free tools Windows power users keep installed
One-click scans. No signup required.
What Apache reverse proxying does
In reverse-proxy mode, visitors connect to Apache’s public hostname. Apache acts as the gateway and sends each matching request to an internal or external backend. The backend does not have to be exposed directly to the Internet, while Apache provides one public endpoint for routing, authentication, TLS termination, caching, or other front-end controls.
This is different from a forward proxy. A forward proxy sends requests on behalf of clients to arbitrary destinations. A reverse proxy sends requests only to the backend destinations you define. Do not enable ProxyRequests On for this setup. The Apache module reference warns that “Open proxy servers are dangerous both to your network and to the Internet at large.”
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.
Choose the proxy shape before editing Apache
Decide these four points first. They determine the directives and modules you need.
- Backend protocol: HTTP, FastCGI, AJP, SCGI, uWSGI, WebSocket, or another protocol.
- Path scope: the whole public site or only an application prefix such as
/app/. - Topology: one backend or a balancer group containing several workers.
- Apache version: WebSocket upgrade handling differs between older releases and Apache 2.4.47 and later.
Also identify where your installation keeps virtual-host configuration and how it loads modules. Distribution layouts differ, so place the directives in the active virtual host rather than assuming a single universal file path.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Enable the modules required by your backend
mod_proxy supplies the proxy framework. It must be combined with a protocol-specific module that knows how to communicate with the backend.
| Backend or topology | Modules to load | Purpose |
|---|---|---|
| HTTP application | mod_proxy, mod_proxy_http |
For ordinary HTTP requests and responses. |
| FastCGI application | mod_proxy, mod_proxy_fcgi |
For FastCGI backends. |
| AJP application server | mod_proxy, mod_proxy_ajp |
For AJP connections. |
| SCGI application | mod_proxy, mod_proxy_scgi |
For SCGI backends. |
| uWSGI application | mod_proxy, mod_proxy_uwsgi |
For uWSGI backends. |
| WebSocket endpoint | mod_proxy |
For connection upgrades and WebSocket traffic. |
| Several backend workers | mod_proxy_balancer plus one or more balancer-method modules |
For worker pools and member selection. |
A typical HTTP installation loads these lines. If your package already enables them, do not add duplicate LoadModule entries; verify the module is active instead.
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
Configure a single HTTP backend
1. Add the mapping to the active virtual host
The smallest useful reverse-proxy configuration maps the public root to an HTTP service listening on the same machine at port 8080:
ProxyRequests Off
ProxyPass "/" "http://127.0.0.1:8080/"
ProxyPassReverse "/" "http://127.0.0.1:8080/"
The backend URL is explicit: it includes the scheme, address, and port. Using a fixed backend target prevents a client-controlled value from influencing where Apache connects.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minuteRank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
2. Validate the configuration
Run your platform’s Apache configuration test command before reloading the service. On installations that provide it, the command is commonly:
apachectl configtest
Correct any syntax or module-loading error reported by the test. A successful syntax check does not prove that the application is listening, so verify the backend service separately.
3. Reload Apache and make a request
Reload Apache using the service manager for your operating system, then request the public virtual-host URL. A successful response demonstrates that Apache can accept the request and reach the backend. If the backend is unavailable, Apache will return a gateway or proxy error rather than an application response.
ProxyPass and ProxyPassReverse are not interchangeable
ProxyPass is the request-routing directive. It maps an incoming public path to a backend URL. In the canonical whole-site form, / on the left means that every request under the virtual host is eligible for forwarding.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchProxyPassReverse changes selected response headers sent by the backend. When an application redirects a visitor, it may generate a Location, Content-Location, or URI containing its internal address. ProxyPassReverse adjusts those headers so the browser continues using the public proxy address.
| Directive | Direction | What it changes | What it does not do |
|---|---|---|---|
ProxyPass |
Client request to backend | Chooses the backend URL for a matching public path. | It does not rewrite response redirects by itself. |
ProxyPassReverse |
Backend response to client | Rewrites redirect-related response headers. | It does not rewrite absolute links embedded in HTML. |
Use both directives with matching public and backend prefixes whenever the backend can issue redirects. If the application sets cookies for an internal domain or path, use the dedicated ProxyPassReverseCookieDomain and ProxyPassReverseCookiePath directives as appropriate.
Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Proxy only an application subpath
If Apache serves the rest of the site locally, narrow the mapping to the application prefix:
ProxyPass "/app/" "http://127.0.0.1:8080/"
ProxyPassReverse "/app/" "http://127.0.0.1:8080/"
With this arrangement, a request for /app/report is sent to the backend with the configured path translation, while unrelated paths remain under Apache’s local document root or other virtual-host rules.
Keep slashes and prefixes intentional
Trailing slashes are significant when the public and backend paths are combined. Decide whether the backend expects its application at its root or under a prefix, then write both directives consistently. A mismatch can produce doubled path segments, missing segments, or redirects to an unexpected URL.
Define the backend scheme and hostname explicitly. Avoid constructing a target from request headers or other client-controlled input; an unrestricted target can turn a routing rule into a server-side request vulnerability.
When backend URLs inside HTML need rewriting
ProxyPassReverse operates on response headers. It does not inspect and rewrite absolute URLs embedded in an HTML response body. If the application emits links such as http://internal.example/..., those links can still expose an internal hostname or send the browser outside the public path.
Use an HTML-rewriting solution such as mod_proxy_html when body-level rewriting is genuinely required. Treat that as a separate concern from redirect handling: first correct the proxy path and application base URL, then add body rewriting only for content that cannot be configured to generate public URLs itself.
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
Proxy WebSockets correctly
WebSockets begin as an HTTP request and then upgrade to a long-lived bidirectional connection. The Apache version and upgrade configuration determine which proxy behavior is appropriate.
Apache 2.4.47 and later
The current reference documents an explicit upgrade parameter for a WebSocket-capable path:
ProxyPass "/some/ws/capable/path/" "http://example.com/some/ws/capable/path/" upgrade=websocket
Replace both paths and the backend hostname with the values used by your application. Load the proxy modules required by the installation and keep the public and backend paths aligned.
Older releases or configurations with upgrade handling disabled
Consult the mod_proxy_wstunnel guidance for older Apache releases and for configurations that do not handle HTTP upgrades through the newer mechanism. The relevant WebSocket tunnel module may be required in those environments. Do not copy a rule intended for one Apache version into another without checking its documented upgrade behavior.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Diagnose failed upgrades
- Confirm that the request reaches the exact WebSocket path configured in
ProxyPass. - Verify that the backend is listening for WebSocket upgrades rather than ordinary HTTP only.
- Check that the Apache version supports the upgrade form you selected.
- Inspect Apache’s error log and the application log for handshake or timeout failures.
- Check any front-end timeout policy; WebSockets are persistent connections, unlike short HTTP requests.
Use a different protocol module for non-HTTP applications
The ProxyPass concept is shared, but the protocol module must match the backend. For FastCGI, use mod_proxy_fcgi; for AJP, use mod_proxy_ajp; for SCGI, use mod_proxy_scgi; and for uWSGI, use mod_proxy_uwsgi. Loading only mod_proxy is not enough to speak any of those protocols.
Do not select a module based solely on the application’s programming language. Select it based on the wire protocol and the listener exposed by the application server. A service that exposes HTTP needs the HTTP proxy module even if the application itself is written in a language commonly associated with another protocol.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Proxy several backends with a balancer
For multiple workers, define a balancer, add its members, and map a public path to the balancer group. The balancer module and at least one load-balancing method module are required.
<Proxy "balancer://appcluster">
BalancerMember "http://127.0.0.1:8081" connectiontimeout=5 timeout=60
BalancerMember "http://127.0.0.1:8082" connectiontimeout=5 timeout=60
</Proxy>
ProxyPass "/app/" "balancer://appcluster/"
ProxyPassReverse "/app/" "balancer://appcluster/"
The example uses two workers and illustrates per-worker connection and request timeout settings. Choose values that reflect your application’s normal response time and failure behavior; a short connection timeout can fail quickly when a worker is unreachable, while an overly long request timeout can tie up proxy resources.
Balancer algorithms determine how members are selected. The appropriate method depends on whether you want simple distribution, weighting, or another documented scheduling behavior. If sessions must remain on one worker, configure the application’s session strategy and any required worker routing deliberately rather than assuming the balancer will preserve state.
Security hardening checklist
- Keep
ProxyRequests Off: reverse proxying does not require forward-proxy mode. - Use fixed targets: write explicit backend schemes and hostnames; never let request data choose an arbitrary destination.
- Limit path scope: proxy only the site or application paths that need forwarding.
- Protect the backend network: bind private services to appropriate interfaces and firewall access where possible.
- Load only required modules: add WebSocket, FastCGI, AJP, SCGI, uWSGI, and balancer modules only when the topology uses them.
- Review redirects and cookies: ensure internal hostnames, domains, and paths are not exposed to clients.
- Set worker timeouts intentionally: infrastructure changes can alter DNS reuse, connection lifetime, and backend response time.
Test the finished proxy without guessing
Confirm module and syntax state
Check the loaded-module list provided by your Apache installation and verify that the protocol module named by your configuration is present. Run the configuration test, then reload only after it passes.
Test the public route
Request the public URL and inspect the status code and response headers. A redirect should point to the public hostname rather than the backend address. If the response is an application page but its links contain an internal hostname, the issue is body content or application URL generation, not a missing ProxyPassReverse rule.
Test the backend independently
Request the backend listener from the Apache host. If that direct request fails, fix the application service, listener address, firewall, or DNS before changing proxy directives. If the direct request works but the public request fails, focus on module loading, path matching, virtual-host selection, and Apache logs.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Troubleshoot the common failure modes
| Symptom | Likely cause | Correction |
|---|---|---|
| Apache starts, but requests return a proxy or gateway error | Backend process is stopped, unreachable, or listening on a different address or port. | Test the backend directly and correct the explicit target in ProxyPass. |
| Redirect sends visitors to an internal hostname | ProxyPassReverse is missing, mismatched, or outside the active virtual host. |
Add a matching reverse mapping and reload Apache. |
| HTML links still contain the internal URL | Header rewriting cannot alter HTML bodies. | Configure the application’s public base URL or use mod_proxy_html where body rewriting is unavoidable. |
| Only some paths are proxied | Path prefix does not match, or slash handling differs between directives. | Compare the requested path with both mapping prefixes and normalize trailing slashes. |
| WebSocket handshake fails | Wrong Apache-version rule, missing upgrade support, or backend is not WebSocket-capable. | Use the version-appropriate upgrade or tunnel configuration and verify the backend handshake. |
| A FastCGI, AJP, SCGI, or uWSGI backend fails immediately | Only the base proxy module or the wrong protocol module is loaded. | Load the module matching the backend wire protocol. |
| Requests become slow or time out under load | Worker timeout values, backend capacity, or balancer selection do not fit the workload. | Review connection and request timeouts, worker health, and the selected balancer method. |
| Apache appears to proxy destinations that were never configured | Forward-proxy mode was enabled. | Set ProxyRequests Off and remove unintended forward-proxy directives. |
Configuration decision guide
| Requirement | Recommended arrangement |
|---|---|
| One HTTP service owns the whole hostname | ProxyPass "/" and matching ProxyPassReverse, with mod_proxy_http. |
| Apache serves static pages and an app lives under one prefix | Map only the application prefix, such as /app/. |
| Backend issues redirects or sets internal cookie attributes | Use ProxyPassReverse and the appropriate cookie-domain or cookie-path directives. |
| Backend emits absolute internal links in HTML | Fix application URL generation or add a deliberate HTML-rewriting layer. |
| Clients use WebSockets | Use the Apache-version-appropriate upgrade or mod_proxy_wstunnel configuration. |
| Several workers serve one application | Define a balancer:// group, add members, select a balancing method, and map the public path to it. |
| Application speaks FastCGI, AJP, SCGI, or uWSGI | Load mod_proxy plus the matching protocol module rather than the HTTP module. |
Complete example with a subpath and WebSocket endpoint
The following example keeps the main site local, sends the application under /app/ to an HTTP backend, and gives a separate WebSocket endpoint an explicit upgrade rule. Adapt the paths and hostnames to your virtual host and Apache version.
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
<VirtualHost *:80>
ServerName www.example.test
ProxyRequests Off
ProxyPass "/app/" "http://127.0.0.1:8080/"
ProxyPassReverse "/app/" "http://127.0.0.1:8080/"
# Apache 2.4.47+ form documented for an upgrade-capable endpoint
ProxyPass "/some/ws/capable/path/" "http://127.0.0.1:8080/some/ws/capable/path/" upgrade=websocket
</VirtualHost>
Keep the WebSocket rule separate from the ordinary application mapping when the backend paths or upgrade requirements differ. On older Apache versions, apply the documented mod_proxy_wstunnel approach instead of assuming this parameter is supported.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

