You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ulf Pietruschka <ul...@etenso.com> on 2007/03/20 12:24:46 UTC

[users@httpd] Open proxy problem

Hi,

I have a problem with the following annoying entries in my server log 
(Apache 2.0.59, SuSE Linux 2.6.8-24.24-smp).

...
66.90.101.145 - - [20/Mar/2007:10:33:20 +0100] <POST 
http://62.4.81.226:25/ HTTP/1.1> 200 491 "-" "-" "-" 62.4.81.226
66.90.101.14 - - [20/Mar/2007:10:36:10 +0100] <POST 
http://62.93.205.87:25/ HTTP/1.1> 200 482 "-" "-" "-" 62.93.205.87
...

I know, this seems to be a known issue, but the already discussed 
problems do not seem to solve the issue. I do have a reverse proxy 
configuration, but with ProxyRequests disabled (i.e. omitted, default is 
"Off") and the virtual host definition embracing the proxy config is 
restricted to my server IP. So, I cannot understand, why these requests 
get an HTTP OK (200).

The following lines are from my httpd.conf (virtual host and proxy 
config, other stuff omitted).

<VirtualHost 62.93.205.22:80>
    DirectoryIndex /content/MM.po
    ProxyPass /content/ http://localhost:8002/content/
    ProxyPass /webservices/ http://localhost:8002/webservices/
    ProxyPassReverse / http://localhost:8002/
    ProxyErrorOverride On
</VirtualHost>

Without the DirectoryIndex, the described requests get a 404 (but I need 
the DirectoryIndex), so it seems, that the request is just handled like 
an ordinary request for "/" (which makes is less severe), but I cannot 
understand, why this request is matched with my virtual host definition 
at all?

Thanks,

Ulf



---------------------------------------------------------------------
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] Open proxy problem

Posted by Joshua Slive <jo...@slive.ca>.
On 3/20/07, Ulf Pietruschka <ul...@etenso.com> wrote:
> Thank you very much for the hint! It solved my problem!
> As far as I understand, the first VirtualHost entry is used as default,
> even if it contains an explicit server name (or even none), which
> differs from the requested server name or IP - somewhat confusing to me ...

Yes, when using NameVirtualHost, the first listed host is the default.
 It is often best to put nothing in this vhost except a Redirect  as
demonstrated here:
http://wiki.apache.org/httpd/Recipes/CanonicalHostNames

Joshua.

---------------------------------------------------------------------
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] Open proxy problem

Posted by Ulf Pietruschka <ul...@etenso.com>.
Thank you very much for the hint! It solved my problem!
As far as I understand, the first VirtualHost entry is used as default, 
even if it contains an explicit server name (or even none), which 
differs from the requested server name or IP - somewhat confusing to me ...

Ulf

Joshua Slive schrieb:
> On 3/20/07, Ulf Pietruschka <ul...@etenso.com> wrote:
>
>> I know, this seems to be a known issue, but the already discussed
>> problems do not seem to solve the issue. I do have a reverse proxy
>> configuration, but with ProxyRequests disabled (i.e. omitted, default is
>> "Off") and the virtual host definition embracing the proxy config is
>> restricted to my server IP. So, I cannot understand, why these requests
>> get an HTTP OK (200).
>
> Start by reading
> http://httpd.apache.org/docs/1.3/misc/FAQ.html#proxyscan
> and then ask again if you need more help.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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] Open proxy problem

Posted by Joshua Slive <jo...@slive.ca>.
On 3/20/07, Ulf Pietruschka <ul...@etenso.com> wrote:

> I know, this seems to be a known issue, but the already discussed
> problems do not seem to solve the issue. I do have a reverse proxy
> configuration, but with ProxyRequests disabled (i.e. omitted, default is
> "Off") and the virtual host definition embracing the proxy config is
> restricted to my server IP. So, I cannot understand, why these requests
> get an HTTP OK (200).

Start by reading
http://httpd.apache.org/docs/1.3/misc/FAQ.html#proxyscan
and then ask again if you need more help.

Joshua.

---------------------------------------------------------------------
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