| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sun Jul 22, 2007 2:19 am Post subject: 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/?output=xml&num=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) |
|
| Back to top |
|
 |
| |
Ads |
Advertising
Sponsor
|
|
bt Guest
|
Posted: Tue Sep 18, 2007 11:43 pm Post subject: Re: Setting Apache as a proxy over Windows |
|
|
On Jul 21, 5:19 pm, start...@gmail.com wrote:
| Quote: |
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? |
|
| Back to top |
|
 |
| |
Ads |
Advertising
Sponsor
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|

80 Attacks blocked
Powered by phpBB © 2001, 2005 phpBB Group
|