<div dir="ltr"><div><div><div><div><div>sto cercando di configurare ngnix come proxy <br><br></div>Quello che dovrebbe fare è:<br></div><div>il proxy da ipv4 a ipv6 per i server dentro ninux<br><br></div>In pratica si mette un sito su di una macchina ipv6 dentro ninux<br></div>si registra  nel dns un nome in ipv6 AAAA <br></div>si registra lo stesso nome come CNAME del proxy <br><br></div>Magicamente il proxy accetta in ipv4 e rimanda al sito  in ipv6<br><div><div><div><br></div><div>Sono risciuto a farlo funzionare in maniera statica, configurando nginx così:<br><br><br></div><div>server {                                                                        <br>    listen       <a href="http://176.62.53.228:8000" target="_blank">176.62.53.228:8000</a>;                                            <br>    location / {                                                                <br>    proxy_pass  "<a href="http://melo.pedani.it" target="_blank">http://melo.pedani.it</a>";                                        <br>    proxy_set_header  X-Real-IP  $remote_addr;                                  <br>    }                                                                           <br>} <br>                                                                              <br>    mentre non funziona se faccio <br> <br clear="all"><div>    server {                                                                    <br>        listen      <a href="http://176.62.53.228:80">176.62.53.228:80</a>;                                           <br>        location / {                                                            <br>         proxy_pass $host;                                                      <br>            proxy_set_header       Host $host;                                  <br>            proxy_set_header X-Forwarded-For $remote_addr;                      <br>            proxy_set_header X-Real-IP $remote_addr;                            <br>}             <br><br></div><div>L'errore mi dice<br><br></div><div>invalid url<br>request: "GET / HTTP/1.1", host: "<a href="http://melo.pedani.it">melo.pedani.it</a>"2015/10/05 18:05:38 [error] 4813#0: *12 invalid URL prefix in "<a href="http://melo.pedani.it">melo.pedani.it</a>", client: 79.21.175.49, server: , request: "GET / HTTP/1.1", host: "<a href="http://melo.pedani.it">melo.pedani.it</a>"<br><br></div><div>-- <br><div><i><b>Matteo Pedani</b></i><br><br><a href="http://www.pedani.it" target="_blank">www.pedani.it</a><font size="1">    <br>mobile <a href="tel:%2B39%C2%A0%203343637690" value="+393343637690" target="_blank">+39  3343637690</a>  <br>phone <a href="tel:%2B39%200699341466" value="+390699341466" target="_blank">+39 0699341466</a><br>phone <a href="tel:%2B39%20069415152" value="+39069415152" target="_blank">+39 069415152</a>  </font>   <br><br><br><br></div>
</div></div></div></div></div>