Apache as Proxy Server

Kevin O'Connor NetWork Support kevin at rainford.org.uk
Thu Aug 17 17:39:12 BST 2000


<color><param>0000,0000,FF00</param>> Am I right in thinking that under 4.0 stable, Apache 1.3.11 will have

> installed with the Proxy Server module enabled?  (The relevant files do

> seem to be there).  I'm asking because the Complete FreeBSD does state

> that the module has to be added manually.

> 

> The problem I'm having is that when trying to access the Internet from

> either the local machine or a remote machine (both via Apache) I'm getting

> an Apache error stating that I don't have permission to access the url,

> whereas dialling up directly without going via Apache works fine.

> 

> I don't know what the error is indicative of; I have had either "all" or

> the specific IP address of the remote machine allowed in Apache, to no

> avail.

> 

> Thanks for any help.

> 

> Tony.

> 

</color>Tony the answer is yes and if you alter the line in the apache.conf file to allow 
remote server info and enter the following url 

http://"YOUR SERVER"/server-info#mod_proxy.c 

you should get some output similar to the following

<bold><color><param>0100,0100,0100</param><FontFamily><param>Times New Roman</param><bigger>Module Name:</bold> <FontFamily><param>Courier New</param><smaller>mod_proxy.c<FontFamily><param>Times New Roman</param><bigger> 

<bold>Content handlers:</bold> <FontFamily><param>Courier New</param><smaller>proxy-server<FontFamily><param>Times New Roman</param><bigger> 

<bold>Configuration Phase Participation:</bold> <FontFamily><param>Courier New</param><smaller>Create Server Config<FontFamily><param>Times New Roman</param><bigger> 

<bold>Request Phase Participation:</bold> <FontFamily><param>Courier New</param><smaller>Post-Read Request<FontFamily><param>Times New Roman</param><bigger>, <FontFamily><param>Courier New</param><smaller>Translate Path<FontFamily><param>Times New Roman</param><bigger>, 
<FontFamily><param>Courier New</param><smaller>Fixups<FontFamily><param>Times New Roman</param><bigger> 

<bold>Module Directives:</bold> 

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyRequests - <italic>on if the true proxy requests should 
be accepted</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyRemote - <italic>a scheme, partial URL or '*' and a 
proxy server</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyPass - <italic>a virtual path and a URL</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyPassReverse - <italic>a virtual path and a URL for 
reverse proxy behaviour</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyBlock - <italic>A list of names, hosts or domains to 
which the proxy will not connect</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyReceiveBufferSize - <italic>Receive buffer size for 
outgoing HTTP and FTP connections in bytes</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>NoProxy - <italic>A list of domains, hosts, or subnets to 
which the proxy will connect directly</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyDomain - <italic>The default intranet domain name (in 
absence of a domain in the URL)</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>AllowCONNECT - <italic>A list of ports which CONNECT may 
connect to</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheRoot - <italic>The directory to store cache files</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheSize - <italic>The maximum disk space used by the cache 
in Kb</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheMaxExpire - <italic>The maximum time in hours to cache a 
document</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheDefaultExpire - <italic>The default time in hours to 
cache a document</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheLastModifiedFactor - <italic>The factor used to estimate 
Expires date from LastModified date</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheGcInterval - <italic>The interval between garbage 
collections, in hours</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheDirLevels - <italic>The number of levels of 
subdirectories in the cache</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheDirLength - <italic>The number of characters in 
subdirectory names</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>NoCache - <italic>A list of names, hosts or domains for which 
caching is *not* provided</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheForceCompletion - <italic>Force a http cache completion 
after this percentage is loaded</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyVia - <italic>Configure Via: proxy header header to one 
of: on | off | block | full</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<bold>Current Configuration:</bold> 

<bold>httpd.conf</bold> 

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyRequests <italic>On</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>ProxyVia <italic>On</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheRoot <italic>"/home/apache"</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheSize <italic>5</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheGcInterval <italic>4</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheMaxExpire <italic>24</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheLastModifiedFactor <italic>0.1</italic><FontFamily><param>Times New Roman</param><bigger> </paraindent>

<paraindent><param>left</param><FontFamily><param>Courier New</param><smaller>CacheDefaultExpire <italic>1</italic><FontFamily><param>Times New Roman</param><bigger></paraindent>

<FontFamily><param>Arial</param><smaller>Hope this helps you might also try allowing anything from local hosts in the 
/etc/hosts.allow  file

regards

Kevin

<nofill>




More information about the Ukfreebsd mailing list