A method and apparatus for managing dynamic content processing in a
reverse proxy server. The reverse proxy server may include modules for
handling dynamic links, invalid or incorrect HTML code, and the like, in
HTTP data. The reverse proxy server may further accept user- or
administrator-defined specific modules for handling HTTP data. Upon
receiving the HTTP data from the host server in response to a request
from a client, the reverse proxy server determines whether pre-patching
module(s) or post-patching module(s) are to be executed. Depending on the
determination specific modules are executed before, after, or before and
after generic patching. In one embodiment, the modules may include tags
for automatic starting of an application tunnel, when an application
requiring an application tunnel is to be launched at a host server.