You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Luis Moreira (ESI-GSQP)" <lu...@esi.pt> on 2007/04/23 11:39:38 UTC

[users@httpd] Apache as a Proxy

Hints, anyone ???



-----Original Message-----
From: Luis Moreira (ESI-GSQP) [mailto:lamoreira@bes.pt] 
Sent: sexta-feira, 20 de Abril de 2007 13:11
To: users@httpd.apache.org
Subject: [users@httpd] Apache 1.3 as a Proxy


Hi

I have been using Apache for quite a while, but only as a mere web server.
I would now like to use it as a Proxy, but don't seem to be able to do that.

Current httpd.conf config :

LoadModule proxy_module modules/mod_proxy.so
AddModule mod_proxy.c

<IfModule mod_proxy.c>
    ProxyRequests On
    <Directory proxy:*>
        Order allow,deny
        Allow from all
    </Directory>
    ProxyVia On
</IfModule>

I then configured another PC to use this machine as proxy, on port 80,
called "http://www.cnn.com" and got a message from apache saying that I had
no permission to access that URL.
What am I missing or doing absolutely wrong ?


Thanks
Luis



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache as a Proxy

Posted by "Luis Moreira (ESI-GSQP)" <lu...@esi.pt>.
Yes, it is.

The proxy machine, my home desktop, has an ADSL connection to the Internet,
which works fine.
The purpose is to connect a laptop, without using wireless, and keeping all
the security levels I have, to avoid "connection sharing".


Luis


-----Original Message-----
From: Joost de Heer [mailto:sanguis@xs4all.nl] 
Sent: terça-feira, 24 de Abril de 2007 9:32
To: Luis Moreira (ESI-GSQP)
Cc: users@httpd.apache.org
Subject: RE: [users@httpd] Apache as a Proxy

> If on a client I point to this machine, on port 80, and try to hit a URL,
> I get this error
>
> Proxy Error
> The proxy server could not handle the request GET http://www.cnn.com/.
>
> Reason: Host not found

Is DNS working on your proxy machine?

Joost


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache as a Proxy

Posted by Joost de Heer <sa...@xs4all.nl>.
> If on a client I point to this machine, on port 80, and try to hit a URL,
> I get this error
>
> Proxy Error
> The proxy server could not handle the request GET http://www.cnn.com/.
>
> Reason: Host not found

Is DNS working on your proxy machine?

Joost


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache as a Proxy

Posted by "Luis Moreira (ESI-GSQP)" <lu...@esi.pt>.
Thanks !!


Apache version 1.3.23 (old, I know)

The proxy module is loaded, and the proxy directives too.

The question is : is there something missing ?
If on a client I point to this machine, on port 80, and try to hit a URL, I get this error

Proxy Error
The proxy server could not handle the request GET http://www.cnn.com/.

Reason: Host not found

! ######################################################################################

LoadModule proxy_module modules/mod_proxy.so

AddModule mod_proxy.c

# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
<IfModule mod_proxy.c>
    ProxyRequests On

    <Directory proxy:*>
        Order allow,deny
        Allow from all
    </Directory>
    ProxyVia On

</IfModule>
# End of proxy directives.


-----Original Message-----
From: Gaël Lams [mailto:lamsgael@gmail.com] 
Sent: segunda-feira, 23 de Abril de 2007 12:14
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache as a Proxy

Which version of httpd? Did you load proxy_http?

Regards,

Gaël


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache as a Proxy

Posted by Gaël Lams <la...@gmail.com>.
Which version of httpd? Did you load proxy_http?

Regards,

Gaël