# IPV6 problems

**URL:** <https://www.ruby-forum.com/t/ipv6-problems/208716>\
**Category:** NGINX\
**Created:** [June 25, 2011, 7:16am UTC](https://www.ruby-forum.com/t/ipv6-problems/208716 "2011-06-25T07:16:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [June 25, 2011, 7:16am UTC](https://www.ruby-forum.com/t/ipv6-problems/208716/1 "2011-06-25T07:16:14Z")

</div>

Normally how I setup nginx is to proxy php/perl to apache sitting on  
port 81, for ipv6  
its also a proxy pass for perl/php to some upstream local ipv4 address.

For ipv6 when typing in a domain in browser utilizing a ipv6 address all  
works just fine,  
but if I use a IPV6 IP address in the browser I get:

400 Bad syntax.

this is only for the proxy to apache for php/perl requests.

Can someone look into this issue why number(hex) addresses in browser  
will not work  
while domains going to IPV6 do…

Dan.

Posted at Nginx Forum:

> **[IPV6 problems](https://forum.nginx.org/read.php?2,209857,209857#msg-209857)**
>
> Normally how I setup nginx is to proxy php/perl to apache sitting on port 81, for ipv6 its also a proxy pass for perl/php to some upstream local ipv4 address. For ipv6 when typing in a domain in browser utilizing a ipv6 address all works just fine,...

---

<div class="post-metadata">

**Author:** ![syle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@syle](https://www.ruby-forum.com/u/syle)\
**Post date:** [June 27, 2011, 11:59am UTC](https://www.ruby-forum.com/t/ipv6-problems/208716/2 "2011-06-27T11:59:07Z")

</div>

This being worked on? Hard to debug ipv6 at times without use of IPV6  
address in browser…

Dan.

Posted at Nginx Forum:

> **[Re: IPV6 problems](https://forum.nginx.org/read.php?2,209857,210384#msg-210384)**
>
> Normally how I setup nginx is to proxy php/perl to apache sitting on port 81, for ipv6 its also a proxy pass for perl/php to some upstream local ipv4 address. For ipv6 when typing in a domain in browser utilizing a ipv6 address all works just fine,...

---

<div class="post-metadata">

**Author:** ![syle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@syle](https://www.ruby-forum.com/u/syle)\
**Post date:** [June 26, 2011, 12:37am UTC](https://www.ruby-forum.com/t/ipv6-problems/208716/3 "2011-06-26T00:37:52Z")

</div>

Hello!

On Sat, Jun 25, 2011 at 01:15:53AM -0400, syle wrote:

> this is only for the proxy to apache for php/perl requests.
> 
> Can someone look into this issue why number(hex) addresses in browser  
> will not work  
> while domains going to IPV6 do…

There are some missing parts in ipv6 address parsing in various  
places, notably $host will have incorrect value if you use ipv6  
address in browser. Most likely it’s the issue you’re facing.

Maxim D.
