Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Configure Apache' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Configure Apache
Authored by: Anonymous on Feb 16, '01 05:50:51PM

I forgot to mention that you have to enable the proxy module to Apache first.

Backup and edit the file /Library/WebServer/Configuration/apache.conf by uncommenting
the lines that enable the proxy. You will need root/admin access to modify anything in that
directory. Search for these lines in the file and remove the leading #:


LoadModule proxy_module /System/Library/Apache/Modules/libproxy.so


AddModule mod_proxy.c


<IfModule mod_proxy.c>
ProxyRequests On


<Directory proxy:*>
Order deny,allow
Deny from all
Allow from 192.168.X.X
</Directory>


ProxyVia On


Add these lines before the closing </IfModule> tag:

# The AllowCONNECT directive specifies a list of port numbers to which
# the proxy CONNECT method may connect. Today's browsers use this
# method when a https connection is requested and proxy tunneling over
# http is in effect. By default, only the default https port (443) and
# the default snews port (563) are enabled. Use the AllowCONNECT
# directive to overrride this default and allow connections to the
# listed ports only.
#
AllowCONNECT 443 563 110 25 119

</IfModule>



[ Reply to This | # ]