The Proxy Server feature is a reverse proxy using Apache mod_proxy.
mod_proxy forwards requests that Apache receives on to another running process through a specific port. For example, if you wish to set up Rails with Mongrel, you could have the Mongrel server running in the background and just have mod_proxy send incoming requests through Mongrel.
You can only forward requests to daemons bound to all hosts, and only on ports above 8000.
A daemon process is a server process that listens for communication from remote clients. For example, the Apache Web server is a daemon that listens for TCP socket connections from Web browser client applications. Some servers, such as TeamSpeak or game servers, might also listen for UDP packets.
A DreamHost VPS (or Dedicated Server) account permits you to run daemon server processes. They are limited to the server resources (CPU/RAM) you pay for. This differs from a shared hosting plan, where these processes could adversely affect other users on the same server.
Daemon processes that bind to a port (on which they listen for incoming connections) are visible from the Internet. DreamHost does not employ any sort of firewall or port blocking on its network.
Setting up a Proxy Server Port
Enter the following values in the DreamHost panel:
- Launch your daemon process, bound to a port above 8000.
- Visit the (Panel > 'Advanced' > 'Mongrel and Proxy') page.
- Under "Set Up A Proxy Server Port"
- URL to set up Proxy under: Enter the portion of your domain that will have the proxied service.
- Port Number to Proxy: Enter the port to which you bound your daemon.
- Click the Add Proxy Server button and wait for the change to take effect.