Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Apache::ReverseProxy 0.07

    Download button

    No screenshots available
    Downloads: 438  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Clinton Wong | More programs
    Perl Artistic License / FREE
    July 31st, 2007, 04:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Apache::ReverseProxy description

    An Apache mod_perl reverse proxy.

    Apache::ReverseProxy is an Apache mod_perl reverse proxy.

    SYNOPSIS

    # In Apache config file
    < Location / >
    SetHandler perl-script
    PerlHandler Apache::ReverseProxy
    PerlSetVar ReverseProxyConfig /usr/local/apache/conf/rproxy.conf
    < /Location >
    # In rproxy.conf / http://www.cpan.org/


    This is a reverse proxy module for Apache with mod_perl. It is intended to replace Apache::ProxyPass. Given a list of URI mappings, this module will translate an incoming URI, retrieve the contents for the translated URI, and return the contents to the original requestor. This module allows you to specify exact matching (instead of regular expression matching) and handles query string translations.

    CONFIGURATION

    You will need to set the ReverseProxyConfig perl variable in Apache to the path of the reverse proxy mapping file. For example:

    < Location / >
    SetHandler perl-script
    PerlHandler Apache::ReverseProxy
    PerlSetVar ReverseProxyConfig /usr/local/apache/conf/rproxy.conf

    # Optional configuration items:
    #PerlSetVar ReverseProxyChain http://proxy.mycompany.com:8888/
    #PerlSetVar ReverseProxyNoChain mycompany.com
    < /Location >


    ReverseProxyChain specifies a proxy server to use. This is sometimes called proxy chaining when one proxy server uses another proxy server. The ReverseProxyNoChain directive can specify a domain to not use proxy chaining on.

    Reverse proxy configuration files have three fields, each separated by white space. The first field is the uri to look for, the second field is the replacement uri, and the third field is optional and allows you to specify comma separated options for the mapping. The only option that is currently supported is the exact parameter, which will make the reverse proxy use exact matching for the first parameter instead of using regular expressions. This feature is convenient when the first parameter contains characters that may need to be escaped or quotemeta'ed. Exact options are evaluated first. If there isn't an exact match, regular expression matches are performed. Configuration files may contain comments, which start with a pound sign. For example:

    /news/ http://www.news.com/
    / http://www.perl.com/
    /stats http://localhost/stats exact
    # /stats maps exactly to http://localhost/stats
    # /stats/b maps to http://www.perl.com/stats/b
    /french/news http://www.news.com/?language=french
    # /french/news/index -> http://www.news.com/index?language=french
    # /french/news/index?a=b -> http://www.news.com/index?language=french&a=b


    Product's homepage

    Requirements:

    · Perl
    · LWP

      


    TAGS:

    Apache proxy | reverse proxy | Perl module | ReverseProxy | Apache | mod_perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM