Bluehost.com Web Hosting $6.95

Setting Apache as a proxy over Windows

This is a discussion on Setting Apache as a proxy over Windows within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hi, I having troubles configuring apache as a proxy and I would appreciate any help. I would like to have ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-21-2007
starter9@gmail.com
 
Posts: n/a
Default Setting Apache as a proxy over Windows

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/?out...m=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.html
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 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 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: grabbed
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 worker
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)

  #2 (permalink)  
Old 09-18-2007
bt
 
Posts: n/a
Default Re: Setting Apache as a proxy over Windows

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.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] "GEThttp://www.google.com/
> HTTP/1.0" 200 44
> 127.0.0.1 - - [22/Jul/2007:00:05:52 +0200] "GEThttp://www.google.com/bookmarks/?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/index.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) 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 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 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: grabbed
> 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 worker
> 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)


I am having the same issue. Any luck resolving?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0