Get the default configuration file proxy.conf for Apache, optimized for Ubuntu 12.04 LTS (Precise Pangolin). This example configuration ensures optimal compatibility and performance for Apache, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/apache2/mods-available/proxy.conf.
For more configurations and setup guides, visit our related files section to further customize your system.
<IfModule mod_proxy.c>
# If you want to use apache2 as a forward proxy, uncomment the
# 'ProxyRequests On' line and the <Proxy *> block below.
# WARNING: Be careful to restrict access inside the <Proxy *> block.
# Open proxy servers are dangerous both to your network and to the
# Internet at large.
#
# If you only want to use apache2 as a reverse proxy/gateway in
# front of some web application server, you DON'T need
# 'ProxyRequests On'.
#ProxyRequests On
#<Proxy *>
# AddDefaultCharset off
# Order deny,allow
# Deny from all
# #Allow from .example.com
#</Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#ProxyVia Off
</IfModule>
Download the raw file with wget or curl
wget -O proxy.conf.example https://exampleconfig.com/static/raw/apache/ubuntu12.04/etc/apache2/mods-available/proxy.conf
curl https://exampleconfig.com/static/raw/apache/ubuntu12.04/etc/apache2/mods-available/proxy.conf > proxy.conf.example
Other config files you might find useful