You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "coeus.si" <in...@coeus.si> on 2010/11/17 07:58:51 UTC
[users@httpd] localhost ipv6 problem
Hi,
I am running Apache on Win Server 2008 and I am trying to configure it as a proxy serving another application that runs on localhost:8020.
The configuration is as follows:
<VirtualHost *:80>
DocumentRoot "C:/myApp"
ServerName example.com
ErrorLog "logs/example-error.log"
CustomLog "logs/example.log" common
UseCanonicalName Off
ServerSignature Off
AddDefaultCharset utf-8
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://[::1]:8020/
ProxyPassReverse / http://[::1]:8020/
</VirtualHost>
When I try to access example.com I get the following error:
[Wed Nov 17 07:34:51 2010] [error] [client 95.87.153.77] proxy: DNS lookup failure for: [::1]]:802 returned by /
[Wed Nov 17 07:34:51 2010] [error] [client 95.87.153.77] File does not exist: C:/myApp/favicon.ico
The reason I used "ProxyPass / http://[::1]:8020/" is because "ProxyPass / http://localhost:8020/" calls 127.0.0.1 that is (unknown to me) unreachable (while ::1, for example, is).
What am I missing here? Or why can't I use ipv6 address in ProxyPass directive? Or can I force Apache to translate localhost to ipv6 address? Or how to convince windows to accept 127.0.0.1... I really stuck here. I would really appreciate any hint.
Thanks,
Bostjan
---------------------------------------------------------------------
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] localhost ipv6 problem
Posted by "coeus.si" <in...@coeus.si>.
I've found a bug report for this issue, and it should be fixed in version 2.2.12 (I am using 2.2.17).
https://issues.apache.org/bugzilla/show_bug.cgi?id=46195
I've also tried suggested workaround - add a line to "c:\Windows\System32\drivers\etc\hosts"
::1 mydummy
and modified Apache configuration
ProxyPass / http://mydummy:8020/
ProxyPassReverse / http://mydummy:8020/
In this case, Apache is not able to find dns address:
[Wed Nov 17 18:55:59 2010] [error] [client 95.87.153.77] proxy: DNS lookup failure for: susy returned by /
It seems to me that Apache either don't check /etc/host or can not deal with ipv6.
Any ideas?
Cheers,
Bostjan
On 17.11.2010, at 7:09, Igor Galić wrote:
>
> ----- "coeus.si" <in...@coeus.si> wrote:
>
>> Hi,
>>
>> I am running Apache on Win Server 2008 and I am trying to configure it
>> as a proxy serving another application that runs on localhost:8020.
>> The configuration is as follows:
>>
>> <VirtualHost *:80>
>> DocumentRoot "C:/myApp"
>>
>> ServerName example.com
>> ErrorLog "logs/example-error.log"
>> CustomLog "logs/example.log" common
>>
>> UseCanonicalName Off
>> ServerSignature Off
>>
>> AddDefaultCharset utf-8
>>
>> ProxyPreserveHost On
>> ProxyRequests Off
>>
>> ProxyPass / http://[::1]:8020/
>> ProxyPassReverse / http://[::1]:8020/
>>
>> </VirtualHost>
>>
>> When I try to access example.com I get the following error:
>> [Wed Nov 17 07:34:51 2010] [error] [client 95.87.153.77] proxy: DNS
>> lookup failure for: [::1]]:802 returned by /
>> [Wed Nov 17 07:34:51 2010] [error] [client 95.87.153.77] File does not
>> exist: C:/myApp/favicon.ico
>>
>> The reason I used "ProxyPass / http://[::1]:8020/" is because
>> "ProxyPass / http://localhost:8020/" calls 127.0.0.1 that is (unknown
>> to me) unreachable (while ::1, for example, is).
>>
>> What am I missing here? Or why can't I use ipv6 address in ProxyPass
>> directive? Or can I force Apache to translate localhost to ipv6
>> address? Or how to convince windows to accept 127.0.0.1... I really
>> stuck here. I would really appreciate any hint.
>
> Even though I don't quite understand why you can't put ::1 localhost in your
> hosts file, I do understand the problem, and it seems to be a bug.
>
> The only thing I was able to pick out from bugzilla is:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=40841
>
>> Thanks,
>> Bostjan
>
> So long,
> i
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883
> Mail: i.galic@brainsware.org
> URL: http://brainsware.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
>
---------------------------------------------------------------------
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] localhost ipv6 problem
Posted by "coeus.si" <in...@coeus.si>.
Thanks Igor,
I guess I will file a bug report.
Cheers,
Bosjtan
On 17.11.2010, at 7:09, Igor Galić wrote:
>
> ----- "coeus.si" <in...@coeus.si> wrote:
>
>> Hi,
>>
>> I am running Apache on Win Server 2008 and I am trying to configure it
>> as a proxy serving another application that runs on localhost:8020.
>> The configuration is as follows:
>>
>> <VirtualHost *:80>
>> DocumentRoot "C:/myApp"
>>
>> ServerName example.com
>> ErrorLog "logs/example-error.log"
>> CustomLog "logs/example.log" common
>>
>> UseCanonicalName Off
>> ServerSignature Off
>>
>> AddDefaultCharset utf-8
>>
>> ProxyPreserveHost On
>> ProxyRequests Off
>>
>> ProxyPass / http://[::1]:8020/
>> ProxyPassReverse / http://[::1]:8020/
>>
>> </VirtualHost>
>>
>> When I try to access example.com I get the following error:
>> [Wed Nov 17 07:34:51 2010] [error] [client 95.87.153.77] proxy: DNS
>> lookup failure for: [::1]]:802 returned by /
>> [Wed Nov 17 07:34:51 2010] [error] [client 95.87.153.77] File does not
>> exist: C:/myApp/favicon.ico
>>
>> The reason I used "ProxyPass / http://[::1]:8020/" is because
>> "ProxyPass / http://localhost:8020/" calls 127.0.0.1 that is (unknown
>> to me) unreachable (while ::1, for example, is).
>>
>> What am I missing here? Or why can't I use ipv6 address in ProxyPass
>> directive? Or can I force Apache to translate localhost to ipv6
>> address? Or how to convince windows to accept 127.0.0.1... I really
>> stuck here. I would really appreciate any hint.
>
> Even though I don't quite understand why you can't put ::1 localhost in your
> hosts file, I do understand the problem, and it seems to be a bug.
>
> The only thing I was able to pick out from bugzilla is:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=40841
>
>> Thanks,
>> Bostjan
>
> So long,
> i
>
> --
> Igor Galić
>
> Tel: +43 (0) 664 886 22 883
> Mail: i.galic@brainsware.org
> URL: http://brainsware.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
>
---------------------------------------------------------------------
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] localhost ipv6 problem
Posted by Igor Galić <i....@brainsware.org>.
----- "coeus.si" <in...@coeus.si> wrote:
> Hi,
>
> I am running Apache on Win Server 2008 and I am trying to configure it
> as a proxy serving another application that runs on localhost:8020.
> The configuration is as follows:
>
> <VirtualHost *:80>
> DocumentRoot "C:/myApp"
>
> ServerName example.com
> ErrorLog "logs/example-error.log"
> CustomLog "logs/example.log" common
>
> UseCanonicalName Off
> ServerSignature Off
>
> AddDefaultCharset utf-8
>
> ProxyPreserveHost On
> ProxyRequests Off
>
> ProxyPass / http://[::1]:8020/
> ProxyPassReverse / http://[::1]:8020/
>
> </VirtualHost>
>
> When I try to access example.com I get the following error:
> [Wed Nov 17 07:34:51 2010] [error] [client 95.87.153.77] proxy: DNS
> lookup failure for: [::1]]:802 returned by /
> [Wed Nov 17 07:34:51 2010] [error] [client 95.87.153.77] File does not
> exist: C:/myApp/favicon.ico
>
> The reason I used "ProxyPass / http://[::1]:8020/" is because
> "ProxyPass / http://localhost:8020/" calls 127.0.0.1 that is (unknown
> to me) unreachable (while ::1, for example, is).
>
> What am I missing here? Or why can't I use ipv6 address in ProxyPass
> directive? Or can I force Apache to translate localhost to ipv6
> address? Or how to convince windows to accept 127.0.0.1... I really
> stuck here. I would really appreciate any hint.
Even though I don't quite understand why you can't put ::1 localhost in your
hosts file, I do understand the problem, and it seems to be a bug.
The only thing I was able to pick out from bugzilla is:
https://issues.apache.org/bugzilla/show_bug.cgi?id=40841
> Thanks,
> Bostjan
So long,
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.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