Setting Apache as a proxy over Windows
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Windows > Setting Apache as a proxy over Windows




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Setting Apache as a proxy over Windows  
starter9@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-22-07 12:14 AM

Hi,

I having troubles configuring apache as a proxy and I would appreciate
any help.

I would like to have apache as a forward proxy - internal users who
want to reach exernal Web Sites will go through it.

My network topology - I have two computers behind a router (cables).
I have installed apache (latest - binaries) on one of them and
configured httpd.conf as following -

1. I have enabled the relevant modules:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

2.I have added the followings to the default settings:

<IfModule mod_proxy>
AllowCONNECT
ProxyRequests On
ProxyVia off
<Proxy *>
Order deny,allow
Deny from all
Allow from all
</Proxy>
</IfModule>


I have also set my proxy settings in IE to localhost:8080.

When I try to reach a web site (www.google.com, or www.oracle.com/index.html
for example) I get the apache default web page ("It Works!").

It seems like apache is not functioning as a proxy for some reasons.

What am I missing? What should I do now?



My access.log:
127.0.0.1 - - [22/Jul/2007:00:05:43 +0200] "GET http://www.google.com/
HTTP/1.0" 200 44
127.0.0.1 - - [22/Jul/2007:00:05:52 +0200] "GET
http://www.google.com/bookmarks/?ou...um=10000&zx=652 HTTP/1.0"
404 208
127.0.0.1 - - [22/Jul/2007:00:05:59 +0200] "GET http://www.oracle.com/index.ht
ml
HTTP/1.0" 200 44
127.0.0.1 - - [22/Jul/2007:00:06:09 +0200] "GET http://www.cnn.com/
HTTP/1.0" 200 44


my error.log
[Sun Jul 22 00:05:35 2007] [notice] Apache/2.2.4 (Win32) configured 
--
resuming normal operations
[Sun Jul 22 00:05:35 2007] [notice] Server built: Jan  9 2007 23:17:
20
[Sun Jul 22 00:05:35 2007] [notice] Parent: Created child process 58
68
[Sun Jul 22 00:05:35 2007] [debug] mpm_winnt.c(481): Parent: Sent th
e
scoreboard to the child
[Sun Jul 22 00:05:35 2007] [notice] Child 5868: Child process is
running
[Sun Jul 22 00:05:35 2007] [info] Parent: Duplicating socket 112 and
sending it to child process 5868
[Sun Jul 22 00:05:35 2007] [debug] mpm_winnt.c(599): Parent: Sent 1
listeners to child 5868
[Sun Jul 22 00:05:35 2007] [debug] mpm_winnt.c(402): Child 5868:
Retrieved our scoreboard from the parent.
[Sun Jul 22 00:05:35 2007] [debug] mpm_winnt.c(558): Child 5868:
retrieved 1 listeners from parent
[Sun Jul 22 00:05:35 2007] [debug] proxy_util.c(1625): proxy: grabbe
d
scoreboard slot 0 in child 5868 for worker proxy:reverse
[Sun Jul 22 00:05:35 2007] [debug] proxy_util.c(1708): proxy:
initialized worker 0 in child 5868 for (*) min=0 max=250 smax=250
[Sun Jul 22 00:05:35 2007] [notice] Child 5868: Acquired the start
mutex.
[Sun Jul 22 00:05:35 2007] [notice] Child 5868: Starting 250 worker
threads.
[Sun Jul 22 00:05:35 2007] [notice] Child 5868: Starting thread to
listen on port 8080.
[Sun Jul 22 00:05:52 2007] [error] [client 127.0.0.1] File does 
not
exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/
bookmarks
[Sun Jul 22 00:06:57 2007] [notice] Parent: Received shutdown signal
-- Shutting down the server.
[Sun Jul 22 00:06:57 2007] [notice] Child 5868: Exit event signaled.
Child process is ending.
[Sun Jul 22 00:06:58 2007] [info] Child 5868: Accept thread exiting.
[Sun Jul 22 00:06:58 2007] [notice] Child 5868: Released the start
mutex
[Sun Jul 22 00:06:58 2007] [info] Child 5868: 250 threads blocked on
the completion port
[Sun Jul 22 00:06:59 2007] [notice] Child 5868: Waiting for 250 work
er
threads to exit.
[Sun Jul 22 00:06:59 2007] [notice] Child 5868: All worker threads
have exited.
[Sun Jul 22 00:06:59 2007] [notice] Child 5868: Child process is
exiting
[Sun Jul 22 00:07:00 2007] [notice] Parent: Child process exited
successfully.
[Sun Jul 22 00:07:00 2007] [info] removed PID file C:/Program Files/
Apache Software Foundation/Apache2.2/logs/httpd.pid (pid=720)






[ Post a follow-up to this message ]



    Re: Setting Apache as a proxy over Windows  
bt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-19-07 12:15 AM

On Jul 21, 5:19 pm, start...@gmail.com wrote:
> Hi,
>
> I having troubles configuring apache as a proxy and I would appreciate
> any help.
>
> I would like to have apache as a forward proxy - internal users who
> want to reach exernal Web Sites will go through it.
>
> My network topology - I have two computers behind a router (cables).
> I have installed apache (latest - binaries) on one of them and
> configured httpd.conf as following -
>
> 1. I have enabled the relevant modules:
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
> LoadModule proxy_connect_module modules/mod_proxy_connect.so
>
> 2.I have added the followings to the default settings:
>
> <IfModule mod_proxy>
>         AllowCONNECT
>         ProxyRequests On
>         ProxyVia off
>         <Proxy *>
>                 Order deny,allow
>                 Deny from all
>                 Allow from all
>         </Proxy>
> </IfModule>
>
> I have also set my proxy settings in IE to localhost:8080.
>
> When I try to reach a web site (www.google.com, orwww.oracle.com/index.htm
l
> for example) I get the apache default web page ("It Works!").
>
> It seems like apache is not functioning as a proxy for some reasons.
>
> What am I missing? What should I do now?
>
> My access.log:
> 127.0.0.1 - - [22/Jul/2007:00:05:43 +0200] "GEThttp://www.google.com/
> HTTP/1.0" 200 44
> 127.0.0.1 - - [22/Jul/2007:00:05:52 +0200] "GEThttp://www.google.com/b
ookmarks/?output=xml&num=10000&zx=652HTTP/1.0"
> 404 208
> 127.0.0.1 - - [22/Jul/2007:00:05:59 +0200] "GEThttp://www.oracle.com/i
ndex.html
> HTTP/1.0" 200 44
> 127.0.0.1 - - [22/Jul/2007:00:06:09 +0200] "GEThttp://www.cnn.com/
> HTTP/1.0" 200 44
>
> my error.log
> [Sun Jul 22 00:05:35 2007] [notice] Apache/2.2.4 (Win32) configure
d --
> resuming normal operations
> [Sun Jul 22 00:05:35 2007] [notice] Server built: Jan  9 2007 23:1
7:20
> [Sun Jul 22 00:05:35 2007] [notice] Parent: Created child process 
5868
> [Sun Jul 22 00:05:35 2007] [debug] mpm_winnt.c(481): Parent: Sent 
the
> scoreboard to the child
> [Sun Jul 22 00:05:35 2007] [notice] Child 5868: Child process is
> running
> [Sun Jul 22 00:05:35 2007] [info] Parent: Duplicating socket 112 a
nd
> sending it to child process 5868
> [Sun Jul 22 00:05:35 2007] [debug] mpm_winnt.c(599): Parent: Sent 
1
> listeners to child 5868
> [Sun Jul 22 00:05:35 2007] [debug] mpm_winnt.c(402): Child 5868:
> Retrieved our scoreboard from the parent.
> [Sun Jul 22 00:05:35 2007] [debug] mpm_winnt.c(558): Child 5868:
> retrieved 1 listeners from parent
> [Sun Jul 22 00:05:35 2007] [debug] proxy_util.c(1625): proxy: grab
bed
> scoreboard slot 0 in child 5868 for worker proxy:reverse
> [Sun Jul 22 00:05:35 2007] [debug] proxy_util.c(1708): proxy:
> initialized worker 0 in child 5868 for (*) min=0 max=250 smax=250
> [Sun Jul 22 00:05:35 2007] [notice] Child 5868: Acquired the start
> mutex.
> [Sun Jul 22 00:05:35 2007] [notice] Child 5868: Starting 250 worke
r
> threads.
> [Sun Jul 22 00:05:35 2007] [notice] Child 5868: Starting thread to
> listen on port 8080.
> [Sun Jul 22 00:05:52 2007] [error] [client 127.0.0.1] File doe
s not
> exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/
> bookmarks
> [Sun Jul 22 00:06:57 2007] [notice] Parent: Received shutdown sign
al
> -- Shutting down the server.
> [Sun Jul 22 00:06:57 2007] [notice] Child 5868: Exit event signale
d.
> Child process is ending.
> [Sun Jul 22 00:06:58 2007] [info] Child 5868: Accept thread exitin
g.
> [Sun Jul 22 00:06:58 2007] [notice] Child 5868: Released the start
> mutex
> [Sun Jul 22 00:06:58 2007] [info] Child 5868: 250 threads blocked 
on
> the completion port
> [Sun Jul 22 00:06:59 2007] [notice] Child 5868: Waiting for 250 wo
rker
> threads to exit.
> [Sun Jul 22 00:06:59 2007] [notice] Child 5868: All worker threads
> have exited.
> [Sun Jul 22 00:06:59 2007] [notice] Child 5868: Child process is
> exiting
> [Sun Jul 22 00:07:00 2007] [notice] Parent: Child process exited
> successfully.
> [Sun Jul 22 00:07:00 2007] [info] removed PID file C:/Program File
s/
> Apache Software Foundation/Apache2.2/logs/httpd.pid (pid=720)

I am having the same issue. Any luck resolving?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:50 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register