Reverse Proxy Deployment

Deploy web applications behind an Apache reverse proxy with ProxyPass rules.

Updated Dec 22, 2025
One-click install
npx skills add https://github.com/lawless-m/Gwen --skill reverse-proxy-deployment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Reverse Proxy Deployment
Source: https://github.com/lawless-m/Gwen/tree/main/.claude/skills/Reverse Proxy Deployment
Command: npx skills add https://github.com/lawless-m/Gwen --skill reverse-proxy-deployment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides deploying web apps behind an Apache reverse proxy, ensuring relative URLs and correct path stripping for API and frontend routes.

Core Features & Use Cases

  • ProxyPass configuration patterns with trailing slashes
  • API routes must be defined before frontend routes
  • Local testing steps before deployment

Quick Start

SSH to rivsprod01 and create the Apache config in proxy-conf.d, then reload Apache and verify external access.

Frequently Asked Questions about Reverse Proxy Deployment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a web application behind an Apache reverse proxy?

Deploy behind Apache reverse proxy by creating ProxyPass configuration files in /etc/apache2/proxy-conf.d with proper path stripping, ordering API routes before frontend routes, using relative URLs in your application, and reloading Apache to apply changes.

What's the correct order for ProxyPass rules when deploying multiple services?

ProxyPass rules must define API routes before frontend routes to prevent the frontend catch-all from intercepting API requests. Apache processes rules sequentially, so order determines which service handles each incoming request.

Why should I use relative URLs instead of absolute URLs behind a reverse proxy?

Relative URLs ensure your frontend correctly routes through the reverse proxy's base path without hardcoding the internal service location, allowing the proxy to transparently handle path rewriting and multiple deployment contexts.

How do I handle trailing slashes in Apache ProxyPass configuration?

Trailing slash handling in ProxyPass affects whether requests match rules and how paths are stripped. Consistent trailing slash placement across your proxy config and application routes prevents routing mismatches and request failures.

Can I test my reverse proxy configuration before deploying to production?

Yes, test locally by creating your Apache config in proxy-conf.d, reloading Apache, and verifying both internal and external access to API and frontend routes work correctly before deploying to rivsprod01.