{{Short description|Apache module}} {{DISPLAYTITLE:mod_proxy}} '''mod_proxy''' is an optional module for the Apache HTTP Server.<ref>[http://httpd.apache.org/docs/2.2/mod/mod_proxy.html Homepage of mod_proxy for Apache 2.2]</ref>

This module implements a proxy, gateway or cache for Apache. It implements proxying capability for AJP13 (Apache JServ Protocol version 1.3), FTP, CONNECT (for SSL), HTTP/0.9, HTTP/1.0, and (since Apache 1.3.23) HTTP/1.1. The module can be configured to connect to other proxy modules for these and other protocols.

One powerful feature of Apache is flexible virtual hosting—multiple virtual hosts on a single server. This is a convenient way to partition separate websites and applications. With mod_proxy it is possible to set various web framework-based applications up as virtual hosts as well.<ref>{{Cite web |url=http://tools.cherrypy.org/wiki/ModProxy |title=Running CherryPy behind Apache using mod_proxy |access-date=2009-11-09 |archive-date=2010-02-21 |archive-url=https://web.archive.org/web/20100221210626/http://tools.cherrypy.org/wiki/ModProxy |url-status=dead }}</ref><ref>[http://www.djangosnippets.org/snippets/213/ Single Django App behind multiple Apache Proxies]</ref><ref>{{Cite web |url=http://mdp.cti.depaul.edu/AlterEgo/default/show/136 |title=Using web2py with Apache, mod_proxy, and mod_proxy_html |access-date=2009-11-09 |archive-date=2009-11-11 |archive-url=https://web.archive.org/web/20091111034948/http://mdp.cti.depaul.edu/AlterEgo/default/show/136 |url-status=dead }}</ref>

mod_proxy can help to improve LAMP security <ref>[http://www.ibm.com/developerworks/library/wa-lampsec/ Improve LAMP security with Apache Proxy's directive (mod_proxy)]</ref> or to strip SSL from HTTP requests.<ref>{{Cite web |url=http://www.onlinehowto.net/Tutorials/Apache-Web-Server/Strip-SSL-with-Apache-mod-proxy-part-one/1051 |title=Strip SSL with Apache mod_proxy |access-date=2009-11-09 |archive-date=2009-09-29 |archive-url=https://web.archive.org/web/20090929074559/http://www.onlinehowto.net/Tutorials/Apache-Web-Server/Strip-SSL-with-Apache-mod-proxy-part-one/1051 |url-status=dead }}</ref>

==History== This module was experimental in Apache 1.1.x.<ref>{{Cite web |url=http://httpd.apache.org/docs/1.3/mod/mod_proxy.html |title=The mod_proxy module was experimental in Apache 1.1.x |access-date=2009-10-10 |archive-date=2009-10-10 |archive-url=https://web.archive.org/web/20091010162646/http://httpd.apache.org/docs/1.3/mod/mod_proxy.html |url-status=dead }}</ref>

As of Apache 1.2, mod_proxy stability was greatly improved.<ref>{{Cite web |url=http://httpd.apache.org/docs/1.3/mod/mod_proxy.html |title=In Apache 1.2, mod_proxy stability was greatly improved |access-date=2009-10-10 |archive-date=2009-10-10 |archive-url=https://web.archive.org/web/20091010162646/http://httpd.apache.org/docs/1.3/mod/mod_proxy.html |url-status=dead }}</ref>

Since Apache 2.0, proxy features are divided into several modules in addition to mod_proxy: mod_proxy_http, mod_proxy_ftp, and mod_proxy_connect — moreover, caching is provided by mod_cache and related modules.<ref>[http://httpd.apache.org/docs/2.0/mod/mod_proxy.html In Apache 2.0 proxy features are divided into several modules]</ref>

Since Apache 2.2, mod_proxy_ajp and mod_proxy_balancer have been added as well.<ref>[http://httpd.apache.org/docs/2.2/mod/mod_proxy.html In Apache 2.2 mod_proxy_ajp and mod_proxy_balancer added]</ref>

As of Apache 2.4, mod_proxy_fcgi was also added, to proxy FastCGI requests to another server, superseding mod_fcgid and mod_fastcgi. <ref>[https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html mod_proxy_fcgi documentation]</ref>

==See also== {{Portal|Free and open-source software}} * Some general purpose Apache modules * Some programming language interfaces for Apache

==Notes== {{Reflist}}

==External links== * [http://httpd.apache.org/docs/1.3/mod/mod_proxy.html Apache module mod_proxy] {{Webarchive|url=https://web.archive.org/web/20091010162646/http://httpd.apache.org/docs/1.3/mod/mod_proxy.html |date=2009-10-10 }} — for Apache 1.3. * [http://httpd.apache.org/docs/2.0/mod/mod_proxy.html Apache module mod_proxy] — for Apache 2.0. * [http://httpd.apache.org/docs/2.2/mod/mod_proxy.html Apache module mod_proxy] — for Apache 2.2. * [http://httpd.apache.org/docs/2.4/mod/mod_proxy.html Apache module mod_proxy] — for Apache 2.4. * [http://httpd.apache.org/docs/current/mod/mod_proxy.html Apache module mod_proxy] — for current Apache.

{{Web interfaces}}

Category:Web server software Category:Articles with underscores in the title Category:Apache httpd modules