SlideShare a Scribd company logo
By icarus

This article copyright Melonfire 2000−2002. All rights reserved.
Using Apache As A Proxy Server


                                                      Table of Contents
Still Waters Run Deep........................................................................................................................................1

A Little Drool......................................................................................................................................................2
             .

Getting Started....................................................................................................................................................3

Passing The Packets............................................................................................................................................5

Wheat And Chaff................................................................................................................................................9

Going Backwards..............................................................................................................................................11

Cache Cow.........................................................................................................................................................12

Endzone..............................................................................................................................................................13




                                                                                                                                                                          i
Still Waters Run Deep
Unless you've been cryogenically frozen for the last twenty years, you probably already know what Apache is.
It's the planet's most popular Web server, with a humongously−high number of Web sites relying on it to
serve up content in a reliable and efficient manner. It has an enthusiastic fan following, an active development
community, and the love and loyalty of millions of Webmasters all over the planet.

The cool thing about Apache, though, is that it's not just a Web server. It can do lots of other things too − and
of its more interesting (though less well−known) capabilities includes the ability to act as a proxy server for
both HTTP and FTP connections over a network.

If you didn't know about this, but are intrigued by the possibilities it opens up, or if you just want to take your
Apache skills to the next level ("hey, Joe, did you know that you could use Apache to restrict certain machines
on your network from accessing playboy.com?"), you've come to the right place. Over the next few pages, I'll
be exploring Apache's proxy module, guiding you through the process of installing, configuring and using it.
Keep reading.




Still Waters Run Deep                                                                                            1
A Little Drool
First of all, the basics. What's a proxy, and why do you care?

A proxy is a piece of software that supports sending and receiving data on behalf of another application. It's
an intermediate layer on your network that receives requests from within the networks, forwards them to the
appropriate host, reads the response, and sends the response back to the requesting host or application within
the network.

By functioning as a gateway to the public Internet, a proxy makes for more secure networks, and also allows
multiple hosts on a network to share a single public IP address. So, if you have an office network consisting of
multiple workstations, but only a single Internet connection, you can use a proxy to provide Internet access to
all the workstations using the single IP address and single connection.

Since a proxy effectively carries the weight of serving all Internet traffic for a network, it can also be used to
do a couple of other things. The first (and most interesting) is that it can substantially speed up your Internet
activity by caching, or locally saving, copies of frequently−accessed Web pages, and using these cached
copies to serve client requests. This reduces latency, cuts down on Internet connectivity charges, and results in
a more positive user experience − all usually considered good things.

A proxy can also be used to monitor Internet traffic flowing in and out of a network, logging all requests in
order to gain a better understanding of how the Internet is being used; this data can be very useful, especially
in corporate environments. And in the event that the data analysis reveals that most of the employees are
goofing off, wasting time and Internet packets on online comic strips or mind−numbing MUDs, a proxy can
even be configured to block access to certain sites, or block certain workstations for accessing the Web.

If you're a network administrator, the thought of all this power probably has you drooling. Wipe it up, and let's
get started.




A Little Drool                                                                                                     2

Recommended for you

Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt

The document provides instructions for installing and configuring an Apache web server on Linux. It discusses downloading and unpacking the Apache files, running configuration commands like make and make install, editing the httpd.conf file to configure server settings and start the Apache service, and testing the installation by accessing the server locally. It also covers additional configuration topics like setting up virtual hosts and file permissions.

apache
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server

The document provides instructions for configuring the Apache web server. It discusses: - Apache processes requests by translating URLs, parsing headers, checking access controls and MIME types, invoking handlers, and logging requests. - Apache is configured by editing the httpd.conf file, which contains directives defining the configuration, including global settings, site configuration, access controls, virtual hosting, and logging. - Virtual hosting allows multiple websites to run on the same server using different domain names or IP addresses. Name-based virtual hosts use the same IP but different names, while IP-based hosts use different IPs.

apache
Build your own secure mail server on the cloud using Amazon Web Services
Build your own secure mail server on the cloud using Amazon Web ServicesBuild your own secure mail server on the cloud using Amazon Web Services
Build your own secure mail server on the cloud using Amazon Web Services

The document describes how to build a secure mail server on AWS using various services like EC2, RDS, SES, and Route53. It involves setting up a MySQL RDS instance for the database, a Postfix server configured to use the RDS backend for mail storage and delivery, proxy servers using Nginx to queue incoming mail, and a load balancer and DNS configuration to make the system highly available. Credentials are generated through SES and the Postfix server is configured to relay through SES. This provides a redundant and scalable email infrastructure in the cloud.

Getting Started
Obviously, in order to do anything constructive with Apache, you need a copy of the source code. Drop by
http://httpd.apache.org/ and get yourself the latest version (this article uses both Apache 1.3 and Apache 2.0).

Once you've got a source code archive, uncompress it into a directory on your system,


        $ cd /tmp
        $ tar −xzvf httpd−2.0.36.tar.gz


and run the "configure" script in the newly−created directory (for Apache 1.3):


        $ ./configure −−enable−module=proxy


If you're using Apache 2.0, you should use this instead:


        $ ./configure −−enable−proxy −−enable−proxy−ftp
        −−enable−proxy−http
        −−enable−cache −−enable−disk−cache


Once the source tree has been prepped, you can compile and install Apache with a quick


        $ make
        $ make install


Apache should get installed to the default location of /usr/local/apache, unless you specified a different
location by adding the "−−prefix" parameter to the "configure" script.

If all goes well, you should now have a properly−compiled Apache Web server installed on your system.
Check to make sure that the proxy module has been included in the build via a quick scan of the output of
"httpd −l".


        $ /usr/local/apache/bin/httpd −l
        Compiled−in modules:
        http_core.c
        mod_env.c
        mod_log_config.c
        mod_mime.c
        mod_negotiation.c


Getting Started                                                                                                    3
Using Apache As A Proxy Server
        mod_status.c
        mod_include.c
        mod_autoindex.c
        mod_dir.c
        mod_cgi.c
        mod_asis.c
        mod_imap.c
        mod_actions.c
        mod_userdir.c
        mod_alias.c
        mod_access.c
        mod_auth.c
        mod_proxy.c
        mod_setenvif.c


All that's left is to configure the proxy. Let's look at that next.




Getting Started                                                          4
Passing The Packets
Apache can function as both a "forward proxy" and a "reverse proxy". A forward proxy accepts client
requests, forwards them to the Internet, and sends the responses back to the requesting client. A reverse proxy,
on the other hand, provides an easy way to remap external URLs such that they appear to belong to the same
domain space as the proxy itself, and to provide enhanced caching facilities at the proxy level (if that didn't
make much sense, don't worry − I've explained it in detail a little further along).

Pop open the Apache configuration file, "httpd.conf", and add the following lines to it (for Apache 1.3):


        <IfModule mod_proxy.c>

        ProxyRequests On

        <Directory proxy:*>
        Order deny,allow
        Deny from all
        Allow from 192.168.0.0/255.255.255.0
        </Directory>

        </IfModule>


If you're using Apache 2.0, you should use this instead:


        <IfModule mod_proxy.c>

        ProxyRequests On

        <Proxy *>
        Order deny,allow
        Deny from all
        Allow from 192.168.0.0/255.255.255.0
        </Proxy>

        </IfModule>


Here, the


        ProxyRequests On


tells Apache to activate its proxy services. It is followed by a



Passing The Packets                                                                                           5
Using Apache As A Proxy Server


        <Proxy>
        ...
        </Proxy>


or


        <Directory>
        ...
        </Directory>


block, which contains rulesets for determining which clients can access these services. These are similar to
firewall rules, which you may be familiar with already.


        <Directory proxy:*>
        Order deny,allow
        Deny from all
        Allow from 192.168.0.0/255.255.255.0
        </Directory>


Note that the last line within the block specifies the IP addresses of clients allowed to use the proxy. In the
example above, I've specified all clients on the 192.168.0.* network; you can just as easily restrict this to a list
or range of specific IP addresses.

Once that's done, shut down and restart the server.


        $ /usr/local/apache/bin/apachectl restart


Next, you need to tell clients on the network about the proxy server. In most cases, this involves popping open
the client's configuration and setting the host name or IP address of the machine running the proxy server.
Assuming that the proxy server is running on the machine identified by the IP address 192.168.0.10, here's
what the configuration looks like in Internet Explorer,




Passing The Packets                                                                                               6

Recommended for you

Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt

This document provides an overview and summary of Apache 2.2 configuration including: 1) Apache release statuses and where development is focused; 2) Common configuration directives like Listen, DocumentRoot, and VirtualHosts; 3) Tips for modularizing configuration using Include directives and separating into files.

apache
Apache server configuration & optimization
Apache server configuration & optimizationApache server configuration & optimization
Apache server configuration & optimization

The document provides an overview of Apache server configuration and optimization topics including Apache configuration files, core Apache configuration directives, virtual hosts, error handling, and important Apache modules. It describes where configuration files are located, examples of common directives like ServerName and DocumentRoot, how to set up virtual hosts, use ErrorDocument to define custom error pages, and explains modules like mod_rewrite, mod_proxy, and mod_evasive.

apache http serverconfiguration management
Web Server Administration
Web Server AdministrationWeb Server Administration
Web Server Administration

The document discusses configuring web servers like Apache and IIS. It explains how web servers work using HTTP, and how to host multiple websites using port numbers, IP addresses, or host names. Virtual directories are also configured to make directories appear below the root even if they are physically located elsewhere.

apache
Using Apache As A Proxy Server




and in Netscape Communicator.




Once the client configuration is complete, attempt to access an Internet resource − the client should make the
request via the proxy (which should, obviously, be connected to the Internet), receive a response and display it
to the user.

You can verify that the request is in fact being handled via the proxy by checking Apache's log files − if, for
example, I used a browser on a networked machine to access the Melonfire Web site, here's what I'd see in the
server logs:


        192.168.0.143 − − [23/May/2002:15:35:52 +0530] "GET
        http://www.melonfire.com/images/account_h.jpg HTTP/1.0" 200
        5118
        192.168.0.143 − − [23/May/2002:15:35:53 +0530] "GET
        http://www.melonfire.com/images/community_h.jpg HTTP/1.0" 200
        6772
        192.168.0.143 − − [23/May/2002:15:35:56 +0530] "GET
        http://www.melonfire.com/images/contact_h.jpg HTTP/1.0" 502
        519
        192.168.0.143 − − [23/May/2002:15:36:02 +0530] "GET
        http://www.melonfire.com/images/logo1.jpg HTTP/1.0" 200 6988
        192.168.0.143 − − [23/May/2002:15:36:02 +0530] "GET
        http://www.melonfire.com/images/teasers/3.jpg HTTP/1.0" 502
        519
        192.168.0.143 − − [23/May/2002:15:36:04 +0530] "GET
        http://www.melonfire.com/images/company_n.jpg HTTP/1.0" 200
        6298


Passing The Packets                                                                                           7
Using Apache As A Proxy Server
      192.168.0.143 − − [23/May/2002:15:36:05 +0530] "GET
      http://www.melonfire.com/images/community_n.jpg HTTP/1.0" 200
      5971
      192.168.0.143 − − [23/May/2002:15:36:05 +0530] "GET
      http://www.melonfire.com/images/go.jpg HTTP/1.0" 200 7002
      192.168.0.143
      − − [23/May/2002:15:36:06 +0530] "GET
      http://www.melonfire.com/images/services_n.jpg HTTP/1.0" 200
      5817
      192.168.0.143 − − [23/May/2002:15:36:07 +0530] "GET
      http://www.melonfire.com/images/account_n.jpg HTTP/1.0" 200
      3820




Passing The Packets                                                   8
Wheat And Chaff
The ability to have all HTTP requests directed outside the network going through a single proxy, which is
completely under your control, opens up some interesting possibilities. One of the most common ones
involves using the proxy to filter out and reject requests for certain "bad" sites. Here's an example, which uses
the very powerful ProxyBlock directive to reject all requests for the Playboy Web site.


        ProxyBlock .playboy.com


You can specify multiple sites by separating them with spaces.


        ProxyBlock .playboy.com .badboy.com


You can block all sites in one swell foop with


        ProxyBlock *


Obviously, this is kinda pointless, especially after all the trouble you've gone to to set up the proxy in the first
place − but feel free to try it, if only for the experience.

Any attempt to access one of these blocked sites will fail, with Apache returning a default error page to the
client. Here's what it looks like:




Obviously, you can customize this page − simply specify the location of a different error page for all HTTP
403 errors, via the ErrorDocument directive.


        ErrorDocument 403 /error403.html


Here's an example of a custom error page, specified using the technique above:




Wheat And Chaff                                                                                                    9
Using Apache As A Proxy Server




Wheat And Chaff                                    10

Recommended for you

httpd — Apache Web Server
httpd — Apache Web Serverhttpd — Apache Web Server
httpd — Apache Web Server

This document discusses setting up an Apache web server with virtual domains and dynamic CGI pages. It provides instructions for installing and configuring Apache from source, including a sample httpd.conf configuration file. It also describes a simple shell script-based web server for testing purposes.

apache
Caching the Uncacheable
Caching the UncacheableCaching the Uncacheable
Caching the Uncacheable

This document provides an overview of using caching to serve visitor-specific content quickly while avoiding server-side sessions. It discusses using HTTP caching headers, a reverse proxy like Varnish, and the Symfony cache to cache responses varying by target groups identified in request cookies. The target groups are reevaluated on cache hits by making conditional requests in the reverse proxy layer using Varnish configuration.

Apache Presentation
Apache PresentationApache Presentation
Apache Presentation

This summary provides an overview of the Apache installation and configuration document: 1) Apache Tomcat is an open source software that implements the Java Servlet and JavaServer Pages technologies. 2) The document outlines the steps to install Apache on Ubuntu using apt-get. 3) It describes how to configure Apache including directives for access control, authentication, default types, and more.

apacheinstallationconfiguration
Going Backwards
You can also have Apache work as a reverse proxy, allowing you to create "shortcut" URLs which appear to
be local to the proxy server, yet actually point to external Web resources. Most of this is accomplished via the
ProxyPass directive, which requires you to specify both the local path and the remote URL.

Here's an example:


        ProxyPass /melonfire/ http://www.melonfire.com/


In this case, any request for the URL


        http://proxy/melonfire/


will be automatically forwarded (via the proxy, naturally) to


        http://www.melonfire.com/




Going Backwards                                                                                              11
Cache Cow
frequently−accessed Web pages to connecting clients. Apache comes with a fairly good proxy caching
feature, which can be used to store Web pages on the server and use these locally−cached copies to serve
client requests.

In order to enable this cache, add the following lines to your Apache 1.3 configuration file:


        CacheRoot "/usr/local/apache/proxy"
        CacheSize 5
        CacheGcInterval 4
        CacheMaxExpire 24
        CacheLastModifiedFactor 0.1
        CacheDefaultExpire 1
        NoCache yahoo.com


Most of these are fairly self−explanatory − the CacheRoot directive sets the directory where cached files will
be stored, while the other directives specify things like maximum cache size and maximum cache flush
interval. It's also possible to exclude certain Web sites from being cached, via the NoCache directive.

The corresponding directives for Apache 2.0 are:


        <IfModule mod_disk_cache.c>
        CacheRoot "/usr/local/apache/proxy"
        CacheSize 500
        CacheDirLevels 5
        CacheDirLength 3
        </IfModule>


Using a cache can speed up browsing on your network, as the server can use cached copies to provide faster
response times to connecting clients.




Cache Cow                                                                                                   12
Endzone
If you're in charge of running a small office network, you might find Apache's built−in proxy server and
caching features fairly useful, especially if all you're looking for is a simple, efficient solution.

The proxy server is great for enabling Internet connection sharing across multiple networked workstation, and
can also add to your peace of mind by providing an additional layer of security to your network. It also
provides you with more control over Internet usage, allowing you to restrict access to "bad" sites, and control
which workstations have access to the Internet. Finally, its logging facilities allow you to monitor Internet
usage, providing you with useful feedback on the performance of your network.

The caching features can also come in handy, especially if your users tend to visit the same set of sites on a
regular basis. By using the cached copies, Apache's proxy server can reduce bandwidth consumption, enhance
user perception of network performance, and reduce Internet costs.

Of course, when all is said and done, the Apache proxy server will always play second fiddle to the Web
server, which still gets the lion's share of the attention. If you're looking for a practical, robust and efficient
solution, and your requirements aren't too complicated, Apache's proxy server will probably work for you. If,
on the other hand, you're looking for more advanced features (like access control lists, more detailed logging
and so on), you should consider using squid, which has to be one of the most powerful, full−featured proxy
servers out there today.

I'll be discussing squid in a separate article soon − but, until then, feast on the following links:

Apache 1.2 documentation for mod_proxy, at http://httpd.apache.org/docs/mod/mod_proxy.html

Apache 2.0 documentation for mod_proxy, at http://httpd.apache.org/docs−2.0/mod/mod_proxy.html

An introduction to Web caching, at http://www.web−caching.com/mnot_tutorial/

An introduction to squid, at http://linux.oreillynet.com/pub/a/linux/2001/07/26/squid.html

See you soon!

Note: All examples in this article have been tested on Linux/i686 with Apache 1.3 and Apache 2.0. Examples
are illustrative only, and are not meant for a production environment. Melonfire provides no warranties or
support for the source code described in this article. YMMV!




Endzone                                                                                                          13

More Related Content

What's hot

Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
عطاءالمنعم اثیل شیخ
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hosting
webhostingguy
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
Ankush Jain
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
webhostingguy
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server
webhostingguy
 
Build your own secure mail server on the cloud using Amazon Web Services
Build your own secure mail server on the cloud using Amazon Web ServicesBuild your own secure mail server on the cloud using Amazon Web Services
Build your own secure mail server on the cloud using Amazon Web Services
ponukumatla joel nishanth
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
webhostingguy
 
Apache server configuration & optimization
Apache server configuration & optimizationApache server configuration & optimization
Apache server configuration & optimization
Gokul Muralidharan
 
Web Server Administration
Web Server AdministrationWeb Server Administration
Web Server Administration
webhostingguy
 
httpd — Apache Web Server
httpd — Apache Web Serverhttpd — Apache Web Server
httpd — Apache Web Server
webhostingguy
 
Caching the Uncacheable
Caching the UncacheableCaching the Uncacheable
Caching the Uncacheable
danrot
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
Manish Bothra
 
Apache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya KulkarniApache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya Kulkarni
webhostingguy
 
Performance all teh things
Performance all teh thingsPerformance all teh things
Performance all teh things
Marcus Deglos
 
Apache web service
Apache web serviceApache web service
Apache web service
Manash Kumar Mondal
 
Network Manual
Network ManualNetwork Manual
Network Manual
Jason Myers
 
Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)
Zakaria Hossain
 

What's hot (17)

Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hosting
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server
 
Build your own secure mail server on the cloud using Amazon Web Services
Build your own secure mail server on the cloud using Amazon Web ServicesBuild your own secure mail server on the cloud using Amazon Web Services
Build your own secure mail server on the cloud using Amazon Web Services
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
Apache server configuration & optimization
Apache server configuration & optimizationApache server configuration & optimization
Apache server configuration & optimization
 
Web Server Administration
Web Server AdministrationWeb Server Administration
Web Server Administration
 
httpd — Apache Web Server
httpd — Apache Web Serverhttpd — Apache Web Server
httpd — Apache Web Server
 
Caching the Uncacheable
Caching the UncacheableCaching the Uncacheable
Caching the Uncacheable
 
Apache Presentation
Apache PresentationApache Presentation
Apache Presentation
 
Apache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya KulkarniApache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya Kulkarni
 
Performance all teh things
Performance all teh thingsPerformance all teh things
Performance all teh things
 
Apache web service
Apache web serviceApache web service
Apache web service
 
Network Manual
Network ManualNetwork Manual
Network Manual
 
Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)Setting up a web server in Linux (Ubuntu)
Setting up a web server in Linux (Ubuntu)
 

Viewers also liked

Science 6 P11
Science 6   P11Science 6   P11
Science 6 P11
Simon Bishop
 
Marco Senni presenta: La mia ricetta
Marco Senni presenta: La mia ricettaMarco Senni presenta: La mia ricetta
Marco Senni presenta: La mia ricetta
Noemi Colangeli
 
Pelling presentation - Regeringens seminarium om remitteringar
Pelling presentation - Regeringens seminarium om remitteringarPelling presentation - Regeringens seminarium om remitteringar
Pelling presentation - Regeringens seminarium om remitteringar
Global Utmaning
 
Abbba presentation english
Abbba presentation englishAbbba presentation english
Abbba presentation english
Global Utmaning
 
Area Forte
Area ForteArea Forte
Area Forte
Joan Taveras
 
Tech wireless wifi_antenna
Tech wireless wifi_antennaTech wireless wifi_antenna
Tech wireless wifi_antenna
HARRY CHAN PUTRA
 
Virtual host examples_-_apache_http_server
Virtual host examples_-_apache_http_serverVirtual host examples_-_apache_http_server
Virtual host examples_-_apache_http_server
HARRY CHAN PUTRA
 
Cisco router
Cisco routerCisco router
Cisco router
HARRY CHAN PUTRA
 
Cisco catalyst switch_guide
Cisco catalyst switch_guideCisco catalyst switch_guide
Cisco catalyst switch_guide
HARRY CHAN PUTRA
 
Cisco router-checklist-procedure-guide-for-network-checkli
Cisco router-checklist-procedure-guide-for-network-checkliCisco router-checklist-procedure-guide-for-network-checkli
Cisco router-checklist-procedure-guide-for-network-checkli
HARRY CHAN PUTRA
 
Sop vlan
Sop vlanSop vlan
RDCLARK TESTIMONIALS
RDCLARK TESTIMONIALSRDCLARK TESTIMONIALS
RDCLARK TESTIMONIALS
RDCLARK
 
Modul 1-instalasi
Modul 1-instalasiModul 1-instalasi
Modul 1-instalasi
HARRY CHAN PUTRA
 
Pengaturan bandwidth pada_proxy
Pengaturan bandwidth pada_proxyPengaturan bandwidth pada_proxy
Pengaturan bandwidth pada_proxy
HARRY CHAN PUTRA
 
W2k router
W2k routerW2k router
W2k router
HARRY CHAN PUTRA
 
Sugeng pcrouter
Sugeng pcrouterSugeng pcrouter
Sugeng pcrouter
HARRY CHAN PUTRA
 
05 interface appended characteristic configuration
05 interface appended characteristic configuration05 interface appended characteristic configuration
05 interface appended characteristic configuration
HARRY CHAN PUTRA
 
Bdcom s2508 b hardware installation manual
Bdcom s2508 b hardware installation manualBdcom s2508 b hardware installation manual
Bdcom s2508 b hardware installation manual
HARRY CHAN PUTRA
 
Tutorial clearos
Tutorial clearosTutorial clearos
Tutorial clearos
HARRY CHAN PUTRA
 

Viewers also liked (19)

Science 6 P11
Science 6   P11Science 6   P11
Science 6 P11
 
Marco Senni presenta: La mia ricetta
Marco Senni presenta: La mia ricettaMarco Senni presenta: La mia ricetta
Marco Senni presenta: La mia ricetta
 
Pelling presentation - Regeringens seminarium om remitteringar
Pelling presentation - Regeringens seminarium om remitteringarPelling presentation - Regeringens seminarium om remitteringar
Pelling presentation - Regeringens seminarium om remitteringar
 
Abbba presentation english
Abbba presentation englishAbbba presentation english
Abbba presentation english
 
Area Forte
Area ForteArea Forte
Area Forte
 
Tech wireless wifi_antenna
Tech wireless wifi_antennaTech wireless wifi_antenna
Tech wireless wifi_antenna
 
Virtual host examples_-_apache_http_server
Virtual host examples_-_apache_http_serverVirtual host examples_-_apache_http_server
Virtual host examples_-_apache_http_server
 
Cisco router
Cisco routerCisco router
Cisco router
 
Cisco catalyst switch_guide
Cisco catalyst switch_guideCisco catalyst switch_guide
Cisco catalyst switch_guide
 
Cisco router-checklist-procedure-guide-for-network-checkli
Cisco router-checklist-procedure-guide-for-network-checkliCisco router-checklist-procedure-guide-for-network-checkli
Cisco router-checklist-procedure-guide-for-network-checkli
 
Sop vlan
Sop vlanSop vlan
Sop vlan
 
RDCLARK TESTIMONIALS
RDCLARK TESTIMONIALSRDCLARK TESTIMONIALS
RDCLARK TESTIMONIALS
 
Modul 1-instalasi
Modul 1-instalasiModul 1-instalasi
Modul 1-instalasi
 
Pengaturan bandwidth pada_proxy
Pengaturan bandwidth pada_proxyPengaturan bandwidth pada_proxy
Pengaturan bandwidth pada_proxy
 
W2k router
W2k routerW2k router
W2k router
 
Sugeng pcrouter
Sugeng pcrouterSugeng pcrouter
Sugeng pcrouter
 
05 interface appended characteristic configuration
05 interface appended characteristic configuration05 interface appended characteristic configuration
05 interface appended characteristic configuration
 
Bdcom s2508 b hardware installation manual
Bdcom s2508 b hardware installation manualBdcom s2508 b hardware installation manual
Bdcom s2508 b hardware installation manual
 
Tutorial clearos
Tutorial clearosTutorial clearos
Tutorial clearos
 

Similar to Using aphace-as-proxy-server

Apache - Quick reference guide
Apache - Quick reference guideApache - Quick reference guide
Apache - Quick reference guide
Joseph's WebSphere Library
 
Scale Apache with Nginx
Scale Apache with NginxScale Apache with Nginx
Scale Apache with Nginx
Bud Siddhisena
 
Apache
ApacheApache
Apache
Rathan Raj
 
Apache ppt
Apache pptApache ppt
Apache ppt
Sanmuga Nathan
 
Apache
ApacheApache
Apache
ApacheApache
Squid server
Squid serverSquid server
Squid server
Rohit Phulsunge
 
Apache
ApacheApache
Apache
NIRMAL FELIX
 
Apache Ppt
Apache PptApache Ppt
Apache Ppt
Hema Prasanth
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
Chetan Soni
 
Apache Kafka - Strakin Technologies Pvt Ltd
Apache Kafka - Strakin Technologies Pvt LtdApache Kafka - Strakin Technologies Pvt Ltd
Apache Kafka - Strakin Technologies Pvt Ltd
Strakin Technologies Pvt Ltd
 
Ch 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet ServersCh 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet Servers
webhostingguy
 
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Niels de Bruijn
 
APACHE
APACHEAPACHE
APACHE
ARJUN
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
guest954945a
 
Squid proxy-configuration-guide
Squid proxy-configuration-guideSquid proxy-configuration-guide
Squid proxy-configuration-guide
jasembo
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
guest954945a
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8
Kaan Aslandağ
 
Apache windows
Apache windowsApache windows
Apache windows
mexxixxo
 
Diva23
Diva23Diva23
Diva23
diva23
 

Similar to Using aphace-as-proxy-server (20)

Apache - Quick reference guide
Apache - Quick reference guideApache - Quick reference guide
Apache - Quick reference guide
 
Scale Apache with Nginx
Scale Apache with NginxScale Apache with Nginx
Scale Apache with Nginx
 
Apache
ApacheApache
Apache
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Apache
ApacheApache
Apache
 
Apache
ApacheApache
Apache
 
Squid server
Squid serverSquid server
Squid server
 
Apache
ApacheApache
Apache
 
Apache Ppt
Apache PptApache Ppt
Apache Ppt
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
 
Apache Kafka - Strakin Technologies Pvt Ltd
Apache Kafka - Strakin Technologies Pvt LtdApache Kafka - Strakin Technologies Pvt Ltd
Apache Kafka - Strakin Technologies Pvt Ltd
 
Ch 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet ServersCh 22: Web Hosting and Internet Servers
Ch 22: Web Hosting and Internet Servers
 
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
 
APACHE
APACHEAPACHE
APACHE
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Squid proxy-configuration-guide
Squid proxy-configuration-guideSquid proxy-configuration-guide
Squid proxy-configuration-guide
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8
 
Apache windows
Apache windowsApache windows
Apache windows
 
Diva23
Diva23Diva23
Diva23
 

More from HARRY CHAN PUTRA

07 VLAN Principle and Configuration.pdf
07 VLAN Principle and Configuration.pdf07 VLAN Principle and Configuration.pdf
07 VLAN Principle and Configuration.pdf
HARRY CHAN PUTRA
 
12 link aggregation configuration
12 link aggregation configuration12 link aggregation configuration
12 link aggregation configuration
HARRY CHAN PUTRA
 
11 mac address table characteristic configuration
11 mac address table characteristic configuration11 mac address table characteristic configuration
11 mac address table characteristic configuration
HARRY CHAN PUTRA
 
Mplsvpn seminar
Mplsvpn seminarMplsvpn seminar
Mplsvpn seminar
HARRY CHAN PUTRA
 
Firewall ip filter
Firewall ip filterFirewall ip filter
Firewall ip filter
HARRY CHAN PUTRA
 
Zxdsl 9210 guide
Zxdsl 9210 guideZxdsl 9210 guide
Zxdsl 9210 guide
HARRY CHAN PUTRA
 
9210 commissioning manual
9210 commissioning manual9210 commissioning manual
9210 commissioning manual
HARRY CHAN PUTRA
 
Bsd routers
Bsd routersBsd routers
Bsd routers
HARRY CHAN PUTRA
 
Hacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guideHacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guide
HARRY CHAN PUTRA
 
Pfsense%20%20note
Pfsense%20%20notePfsense%20%20note
Pfsense%20%20note
HARRY CHAN PUTRA
 
66 pf sensetutorial
66 pf sensetutorial66 pf sensetutorial
66 pf sensetutorial
HARRY CHAN PUTRA
 
Modul 1-instalasi
Modul 1-instalasiModul 1-instalasi
Modul 1-instalasi
HARRY CHAN PUTRA
 
Slimsinserver2go
Slimsinserver2goSlimsinserver2go
Slimsinserver2go
HARRY CHAN PUTRA
 
Olivevme110usermanualid
Olivevme110usermanualidOlivevme110usermanualid
Olivevme110usermanualid
HARRY CHAN PUTRA
 
Modul 10 vicon
Modul 10 viconModul 10 vicon
Modul 10 vicon
HARRY CHAN PUTRA
 
Modul 9 pengelolaan_infra
Modul 9 pengelolaan_infraModul 9 pengelolaan_infra
Modul 9 pengelolaan_infra
HARRY CHAN PUTRA
 
Modul 8 vo_ip
Modul 8 vo_ipModul 8 vo_ip
Modul 8 vo_ip
HARRY CHAN PUTRA
 
Modul 7 infrastruktur
Modul 7 infrastrukturModul 7 infrastruktur
Modul 7 infrastruktur
HARRY CHAN PUTRA
 

More from HARRY CHAN PUTRA (20)

07 VLAN Principle and Configuration.pdf
07 VLAN Principle and Configuration.pdf07 VLAN Principle and Configuration.pdf
07 VLAN Principle and Configuration.pdf
 
12 link aggregation configuration
12 link aggregation configuration12 link aggregation configuration
12 link aggregation configuration
 
11 mac address table characteristic configuration
11 mac address table characteristic configuration11 mac address table characteristic configuration
11 mac address table characteristic configuration
 
Mplsvpn seminar
Mplsvpn seminarMplsvpn seminar
Mplsvpn seminar
 
Firewall ip filter
Firewall ip filterFirewall ip filter
Firewall ip filter
 
Zxdsl 9210 guide
Zxdsl 9210 guideZxdsl 9210 guide
Zxdsl 9210 guide
 
9210 commissioning manual
9210 commissioning manual9210 commissioning manual
9210 commissioning manual
 
Bsd routers
Bsd routersBsd routers
Bsd routers
 
Hacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guideHacom%20pf sense%20quick start%20guide
Hacom%20pf sense%20quick start%20guide
 
Pfsense%20%20note
Pfsense%20%20notePfsense%20%20note
Pfsense%20%20note
 
66 pf sensetutorial
66 pf sensetutorial66 pf sensetutorial
66 pf sensetutorial
 
Modul 1-instalasi
Modul 1-instalasiModul 1-instalasi
Modul 1-instalasi
 
Modul 0-pengantar
Modul 0-pengantarModul 0-pengantar
Modul 0-pengantar
 
Modul 0-pengantar
Modul 0-pengantarModul 0-pengantar
Modul 0-pengantar
 
Slimsinserver2go
Slimsinserver2goSlimsinserver2go
Slimsinserver2go
 
Olivevme110usermanualid
Olivevme110usermanualidOlivevme110usermanualid
Olivevme110usermanualid
 
Modul 10 vicon
Modul 10 viconModul 10 vicon
Modul 10 vicon
 
Modul 9 pengelolaan_infra
Modul 9 pengelolaan_infraModul 9 pengelolaan_infra
Modul 9 pengelolaan_infra
 
Modul 8 vo_ip
Modul 8 vo_ipModul 8 vo_ip
Modul 8 vo_ip
 
Modul 7 infrastruktur
Modul 7 infrastrukturModul 7 infrastruktur
Modul 7 infrastruktur
 

Recently uploaded

How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
Celine George
 
Book Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docxBook Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docx
drtech3715
 
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptxChapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Brajeswar Paul
 
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
thanhluan21
 
Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?
Rakesh Jalan
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptx
heathfieldcps1
 
How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17
Celine George
 
Ardra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Ardra Nakshatra (आर्द्रा): Understanding its Effects and RemediesArdra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Ardra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Astro Pathshala
 
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdfThe Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
JackieSparrow3
 
NLC English 7 Consolidation Lesson plan for teacher
NLC English 7 Consolidation Lesson plan for teacherNLC English 7 Consolidation Lesson plan for teacher
NLC English 7 Consolidation Lesson plan for teacher
AngelicaLubrica
 
Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
EduSkills OECD
 
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Neny Isharyanti
 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
marianell3076
 
NLC Grade 3.................................... ppt.pptx
NLC Grade 3.................................... ppt.pptxNLC Grade 3.................................... ppt.pptx
NLC Grade 3.................................... ppt.pptx
MichelleDeLaCruz93
 
National Learning Camp( Reading Intervention for grade1)
National Learning Camp( Reading Intervention for grade1)National Learning Camp( Reading Intervention for grade1)
National Learning Camp( Reading Intervention for grade1)
SaadaGrijaldo1
 
(T.L.E.) Agriculture: Essentials of Gardening
(T.L.E.) Agriculture: Essentials of Gardening(T.L.E.) Agriculture: Essentials of Gardening
(T.L.E.) Agriculture: Essentials of Gardening
MJDuyan
 
Bedok NEWater Photostory - COM322 Assessment (Story 2)
Bedok NEWater Photostory - COM322 Assessment (Story 2)Bedok NEWater Photostory - COM322 Assessment (Story 2)
Bedok NEWater Photostory - COM322 Assessment (Story 2)
Liyana Rozaini
 
How to Store Data on the Odoo 17 Website
How to Store Data on the Odoo 17 WebsiteHow to Store Data on the Odoo 17 Website
How to Store Data on the Odoo 17 Website
Celine George
 
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISINGSYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
Dr Vijay Vishwakarma
 

Recently uploaded (20)

How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
 
Book Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docxBook Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docx
 
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptxChapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
 
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
DANH SÁCH THÍ SINH XÉT TUYỂN SỚM ĐỦ ĐIỀU KIỆN TRÚNG TUYỂN ĐẠI HỌC CHÍNH QUY N...
 
Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?Is Email Marketing Really Effective In 2024?
Is Email Marketing Really Effective In 2024?
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptx
 
How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17How to Handle the Separate Discount Account on Invoice in Odoo 17
How to Handle the Separate Discount Account on Invoice in Odoo 17
 
Ardra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Ardra Nakshatra (आर्द्रा): Understanding its Effects and RemediesArdra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
Ardra Nakshatra (आर्द्रा): Understanding its Effects and Remedies
 
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdfThe Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
 
“A NOSSA CA(U)SA”. .
“A NOSSA CA(U)SA”.                      .“A NOSSA CA(U)SA”.                      .
“A NOSSA CA(U)SA”. .
 
NLC English 7 Consolidation Lesson plan for teacher
NLC English 7 Consolidation Lesson plan for teacherNLC English 7 Consolidation Lesson plan for teacher
NLC English 7 Consolidation Lesson plan for teacher
 
Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
 
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
Understanding and Interpreting Teachers’ TPACK for Teaching Multimodalities i...
 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
NLC Grade 3.................................... ppt.pptx
NLC Grade 3.................................... ppt.pptxNLC Grade 3.................................... ppt.pptx
NLC Grade 3.................................... ppt.pptx
 
National Learning Camp( Reading Intervention for grade1)
National Learning Camp( Reading Intervention for grade1)National Learning Camp( Reading Intervention for grade1)
National Learning Camp( Reading Intervention for grade1)
 
(T.L.E.) Agriculture: Essentials of Gardening
(T.L.E.) Agriculture: Essentials of Gardening(T.L.E.) Agriculture: Essentials of Gardening
(T.L.E.) Agriculture: Essentials of Gardening
 
Bedok NEWater Photostory - COM322 Assessment (Story 2)
Bedok NEWater Photostory - COM322 Assessment (Story 2)Bedok NEWater Photostory - COM322 Assessment (Story 2)
Bedok NEWater Photostory - COM322 Assessment (Story 2)
 
How to Store Data on the Odoo 17 Website
How to Store Data on the Odoo 17 WebsiteHow to Store Data on the Odoo 17 Website
How to Store Data on the Odoo 17 Website
 
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISINGSYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
 

Using aphace-as-proxy-server

  • 1. By icarus This article copyright Melonfire 2000−2002. All rights reserved.
  • 2. Using Apache As A Proxy Server Table of Contents Still Waters Run Deep........................................................................................................................................1 A Little Drool......................................................................................................................................................2 . Getting Started....................................................................................................................................................3 Passing The Packets............................................................................................................................................5 Wheat And Chaff................................................................................................................................................9 Going Backwards..............................................................................................................................................11 Cache Cow.........................................................................................................................................................12 Endzone..............................................................................................................................................................13 i
  • 3. Still Waters Run Deep Unless you've been cryogenically frozen for the last twenty years, you probably already know what Apache is. It's the planet's most popular Web server, with a humongously−high number of Web sites relying on it to serve up content in a reliable and efficient manner. It has an enthusiastic fan following, an active development community, and the love and loyalty of millions of Webmasters all over the planet. The cool thing about Apache, though, is that it's not just a Web server. It can do lots of other things too − and of its more interesting (though less well−known) capabilities includes the ability to act as a proxy server for both HTTP and FTP connections over a network. If you didn't know about this, but are intrigued by the possibilities it opens up, or if you just want to take your Apache skills to the next level ("hey, Joe, did you know that you could use Apache to restrict certain machines on your network from accessing playboy.com?"), you've come to the right place. Over the next few pages, I'll be exploring Apache's proxy module, guiding you through the process of installing, configuring and using it. Keep reading. Still Waters Run Deep 1
  • 4. A Little Drool First of all, the basics. What's a proxy, and why do you care? A proxy is a piece of software that supports sending and receiving data on behalf of another application. It's an intermediate layer on your network that receives requests from within the networks, forwards them to the appropriate host, reads the response, and sends the response back to the requesting host or application within the network. By functioning as a gateway to the public Internet, a proxy makes for more secure networks, and also allows multiple hosts on a network to share a single public IP address. So, if you have an office network consisting of multiple workstations, but only a single Internet connection, you can use a proxy to provide Internet access to all the workstations using the single IP address and single connection. Since a proxy effectively carries the weight of serving all Internet traffic for a network, it can also be used to do a couple of other things. The first (and most interesting) is that it can substantially speed up your Internet activity by caching, or locally saving, copies of frequently−accessed Web pages, and using these cached copies to serve client requests. This reduces latency, cuts down on Internet connectivity charges, and results in a more positive user experience − all usually considered good things. A proxy can also be used to monitor Internet traffic flowing in and out of a network, logging all requests in order to gain a better understanding of how the Internet is being used; this data can be very useful, especially in corporate environments. And in the event that the data analysis reveals that most of the employees are goofing off, wasting time and Internet packets on online comic strips or mind−numbing MUDs, a proxy can even be configured to block access to certain sites, or block certain workstations for accessing the Web. If you're a network administrator, the thought of all this power probably has you drooling. Wipe it up, and let's get started. A Little Drool 2
  • 5. Getting Started Obviously, in order to do anything constructive with Apache, you need a copy of the source code. Drop by http://httpd.apache.org/ and get yourself the latest version (this article uses both Apache 1.3 and Apache 2.0). Once you've got a source code archive, uncompress it into a directory on your system, $ cd /tmp $ tar −xzvf httpd−2.0.36.tar.gz and run the "configure" script in the newly−created directory (for Apache 1.3): $ ./configure −−enable−module=proxy If you're using Apache 2.0, you should use this instead: $ ./configure −−enable−proxy −−enable−proxy−ftp −−enable−proxy−http −−enable−cache −−enable−disk−cache Once the source tree has been prepped, you can compile and install Apache with a quick $ make $ make install Apache should get installed to the default location of /usr/local/apache, unless you specified a different location by adding the "−−prefix" parameter to the "configure" script. If all goes well, you should now have a properly−compiled Apache Web server installed on your system. Check to make sure that the proxy module has been included in the build via a quick scan of the output of "httpd −l". $ /usr/local/apache/bin/httpd −l Compiled−in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c Getting Started 3
  • 6. Using Apache As A Proxy Server mod_status.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_access.c mod_auth.c mod_proxy.c mod_setenvif.c All that's left is to configure the proxy. Let's look at that next. Getting Started 4
  • 7. Passing The Packets Apache can function as both a "forward proxy" and a "reverse proxy". A forward proxy accepts client requests, forwards them to the Internet, and sends the responses back to the requesting client. A reverse proxy, on the other hand, provides an easy way to remap external URLs such that they appear to belong to the same domain space as the proxy itself, and to provide enhanced caching facilities at the proxy level (if that didn't make much sense, don't worry − I've explained it in detail a little further along). Pop open the Apache configuration file, "httpd.conf", and add the following lines to it (for Apache 1.3): <IfModule mod_proxy.c> ProxyRequests On <Directory proxy:*> Order deny,allow Deny from all Allow from 192.168.0.0/255.255.255.0 </Directory> </IfModule> If you're using Apache 2.0, you should use this instead: <IfModule mod_proxy.c> ProxyRequests On <Proxy *> Order deny,allow Deny from all Allow from 192.168.0.0/255.255.255.0 </Proxy> </IfModule> Here, the ProxyRequests On tells Apache to activate its proxy services. It is followed by a Passing The Packets 5
  • 8. Using Apache As A Proxy Server <Proxy> ... </Proxy> or <Directory> ... </Directory> block, which contains rulesets for determining which clients can access these services. These are similar to firewall rules, which you may be familiar with already. <Directory proxy:*> Order deny,allow Deny from all Allow from 192.168.0.0/255.255.255.0 </Directory> Note that the last line within the block specifies the IP addresses of clients allowed to use the proxy. In the example above, I've specified all clients on the 192.168.0.* network; you can just as easily restrict this to a list or range of specific IP addresses. Once that's done, shut down and restart the server. $ /usr/local/apache/bin/apachectl restart Next, you need to tell clients on the network about the proxy server. In most cases, this involves popping open the client's configuration and setting the host name or IP address of the machine running the proxy server. Assuming that the proxy server is running on the machine identified by the IP address 192.168.0.10, here's what the configuration looks like in Internet Explorer, Passing The Packets 6
  • 9. Using Apache As A Proxy Server and in Netscape Communicator. Once the client configuration is complete, attempt to access an Internet resource − the client should make the request via the proxy (which should, obviously, be connected to the Internet), receive a response and display it to the user. You can verify that the request is in fact being handled via the proxy by checking Apache's log files − if, for example, I used a browser on a networked machine to access the Melonfire Web site, here's what I'd see in the server logs: 192.168.0.143 − − [23/May/2002:15:35:52 +0530] "GET http://www.melonfire.com/images/account_h.jpg HTTP/1.0" 200 5118 192.168.0.143 − − [23/May/2002:15:35:53 +0530] "GET http://www.melonfire.com/images/community_h.jpg HTTP/1.0" 200 6772 192.168.0.143 − − [23/May/2002:15:35:56 +0530] "GET http://www.melonfire.com/images/contact_h.jpg HTTP/1.0" 502 519 192.168.0.143 − − [23/May/2002:15:36:02 +0530] "GET http://www.melonfire.com/images/logo1.jpg HTTP/1.0" 200 6988 192.168.0.143 − − [23/May/2002:15:36:02 +0530] "GET http://www.melonfire.com/images/teasers/3.jpg HTTP/1.0" 502 519 192.168.0.143 − − [23/May/2002:15:36:04 +0530] "GET http://www.melonfire.com/images/company_n.jpg HTTP/1.0" 200 6298 Passing The Packets 7
  • 10. Using Apache As A Proxy Server 192.168.0.143 − − [23/May/2002:15:36:05 +0530] "GET http://www.melonfire.com/images/community_n.jpg HTTP/1.0" 200 5971 192.168.0.143 − − [23/May/2002:15:36:05 +0530] "GET http://www.melonfire.com/images/go.jpg HTTP/1.0" 200 7002 192.168.0.143 − − [23/May/2002:15:36:06 +0530] "GET http://www.melonfire.com/images/services_n.jpg HTTP/1.0" 200 5817 192.168.0.143 − − [23/May/2002:15:36:07 +0530] "GET http://www.melonfire.com/images/account_n.jpg HTTP/1.0" 200 3820 Passing The Packets 8
  • 11. Wheat And Chaff The ability to have all HTTP requests directed outside the network going through a single proxy, which is completely under your control, opens up some interesting possibilities. One of the most common ones involves using the proxy to filter out and reject requests for certain "bad" sites. Here's an example, which uses the very powerful ProxyBlock directive to reject all requests for the Playboy Web site. ProxyBlock .playboy.com You can specify multiple sites by separating them with spaces. ProxyBlock .playboy.com .badboy.com You can block all sites in one swell foop with ProxyBlock * Obviously, this is kinda pointless, especially after all the trouble you've gone to to set up the proxy in the first place − but feel free to try it, if only for the experience. Any attempt to access one of these blocked sites will fail, with Apache returning a default error page to the client. Here's what it looks like: Obviously, you can customize this page − simply specify the location of a different error page for all HTTP 403 errors, via the ErrorDocument directive. ErrorDocument 403 /error403.html Here's an example of a custom error page, specified using the technique above: Wheat And Chaff 9
  • 12. Using Apache As A Proxy Server Wheat And Chaff 10
  • 13. Going Backwards You can also have Apache work as a reverse proxy, allowing you to create "shortcut" URLs which appear to be local to the proxy server, yet actually point to external Web resources. Most of this is accomplished via the ProxyPass directive, which requires you to specify both the local path and the remote URL. Here's an example: ProxyPass /melonfire/ http://www.melonfire.com/ In this case, any request for the URL http://proxy/melonfire/ will be automatically forwarded (via the proxy, naturally) to http://www.melonfire.com/ Going Backwards 11
  • 14. Cache Cow frequently−accessed Web pages to connecting clients. Apache comes with a fairly good proxy caching feature, which can be used to store Web pages on the server and use these locally−cached copies to serve client requests. In order to enable this cache, add the following lines to your Apache 1.3 configuration file: CacheRoot "/usr/local/apache/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 NoCache yahoo.com Most of these are fairly self−explanatory − the CacheRoot directive sets the directory where cached files will be stored, while the other directives specify things like maximum cache size and maximum cache flush interval. It's also possible to exclude certain Web sites from being cached, via the NoCache directive. The corresponding directives for Apache 2.0 are: <IfModule mod_disk_cache.c> CacheRoot "/usr/local/apache/proxy" CacheSize 500 CacheDirLevels 5 CacheDirLength 3 </IfModule> Using a cache can speed up browsing on your network, as the server can use cached copies to provide faster response times to connecting clients. Cache Cow 12
  • 15. Endzone If you're in charge of running a small office network, you might find Apache's built−in proxy server and caching features fairly useful, especially if all you're looking for is a simple, efficient solution. The proxy server is great for enabling Internet connection sharing across multiple networked workstation, and can also add to your peace of mind by providing an additional layer of security to your network. It also provides you with more control over Internet usage, allowing you to restrict access to "bad" sites, and control which workstations have access to the Internet. Finally, its logging facilities allow you to monitor Internet usage, providing you with useful feedback on the performance of your network. The caching features can also come in handy, especially if your users tend to visit the same set of sites on a regular basis. By using the cached copies, Apache's proxy server can reduce bandwidth consumption, enhance user perception of network performance, and reduce Internet costs. Of course, when all is said and done, the Apache proxy server will always play second fiddle to the Web server, which still gets the lion's share of the attention. If you're looking for a practical, robust and efficient solution, and your requirements aren't too complicated, Apache's proxy server will probably work for you. If, on the other hand, you're looking for more advanced features (like access control lists, more detailed logging and so on), you should consider using squid, which has to be one of the most powerful, full−featured proxy servers out there today. I'll be discussing squid in a separate article soon − but, until then, feast on the following links: Apache 1.2 documentation for mod_proxy, at http://httpd.apache.org/docs/mod/mod_proxy.html Apache 2.0 documentation for mod_proxy, at http://httpd.apache.org/docs−2.0/mod/mod_proxy.html An introduction to Web caching, at http://www.web−caching.com/mnot_tutorial/ An introduction to squid, at http://linux.oreillynet.com/pub/a/linux/2001/07/26/squid.html See you soon! Note: All examples in this article have been tested on Linux/i686 with Apache 1.3 and Apache 2.0. Examples are illustrative only, and are not meant for a production environment. Melonfire provides no warranties or support for the source code described in this article. YMMV! Endzone 13