Apache reverse proxy to local app

Proxy a subdomain to a local app running on a port (e.g., Node.js on 3000, n8n on 5678).

Configures Apache as a reverse proxy to forward requests to a backend application (Node.js, Python, etc.) running on a local port. ProxyPreserveHost passes the original Host header to the backend.

When you need this: When running a Node.js or Python app behind Apache for SSL termination or shared port 80 access.

Variables

Command


        
2 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.