File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Configuring Apache as Proxy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring Apache as Proxy" Watch "Configuring Apache as Proxy" New topic

Configuring Apache as Proxy

Sharang Thorat

Joined: Dec 07, 2000
Posts: 21

I am using apache 2.0. I want to set apache as proxy i.e any URL I type in browser should pass thru proxy server. I am using following setting to do that in my http.conf file.

# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:

<IfModule mod_proxy.c>
ProxyRequests On

<Proxy *>
Order deny,allow
Allow from all

# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via:

# Set to one of: Off | On | Full | Block
#ProxyVia On

# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)

#CacheRoot "C:/Apache/proxy"
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1

#End of proxy directives.

I changed my browser setting to accept http://localhost:80 as proxy server and port (my apache is listening on port 80 ).

Whenever I type any URL in browser I get following error

You don't have permission to access on this server.

why my apache is not allowing me to access url.

I agree. Here's the link:
subject: Configuring Apache as Proxy
It's not a secret anymore!