Was ist die Ursache 301-Weiterleitung?

Ich habe ein problem mit meinem server umleiten http://www.mylesgray.com:8080/ -> http://www.mylesgray.com/.

Hier sind meine Nginx default und fastcgi_params config-Dateien:

https://gist.github.com/1745271

https://gist.github.com/1745313

Dies ist eher ein ärgernis, als ich versuche zu laufen, ein benchmark von Nginx w/caching vs Lack w/caching auf der Oberseite des Nginx, um zu sehen, wenn es irgendeinen performance-Vorteil des einen über den anderen.

Als solche habe ich gerade Nginx w/caching lauscht auf port 8080 und Lack auf port 80 übermittelt, der alle nicht-Cache-Anfragen zu Nginx auf localhost:8080, so offensichtlich, was ich will zu tun ist, führen Sie eine ab benchmark auf http://www.mylesgray.com:8080/ und auf http://www.mylesgray.com/ um den Unterschied zu sehen.

Hier sind die Ergebnisse der curl -I auf verschiedene Adressen.

# curl -I http://www.mylesgray.com:8080

HTTP/1.1 301 Moved Permanently
Server: nginx/0.7.65
Date: Sun, 05 Feb 2012 12:07:34 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.3.2-1ubuntu4.7ppa5~lucid1
X-Pingback: http://www.mylesgray.com/xmlrpc.php
Location: http://www.mylesgray.com/

# curl -I http://mylesgray.com

HTTP/1.1 301 Moved Permanently
Server: nginx/0.7.65
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.2-1ubuntu4.7ppa5~lucid1
X-Pingback: http://www.mylesgray.com/xmlrpc.php
Location: http://www.mylesgray.com/
Content-Length: 0
Date: Sun, 05 Feb 2012 12:15:51 GMT
X-Varnish: 1419774165 1419774163
Age: 15
Via: 1.1 varnish
Connection: keep-alive

# curl -I http://mylesgray.com:8080

HTTP/1.1 301 Moved Permanently
Server: nginx/0.7.65
Date: Sun, 05 Feb 2012 12:16:08 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.3.2-1ubuntu4.7ppa5~lucid1
X-Pingback: http://www.mylesgray.com/xmlrpc.php
Location: http://www.mylesgray.com/

Dann läuft curl -I http://www.mylesgray.com gibt:

# curl -I http://www.mylesgray.com

HTTP/1.1 200 OK
Server: nginx/0.7.65
Content-Type: text/html; charset=UTF-8
X-Powered-By: PHP/5.3.2-1ubuntu4.7ppa5~lucid1
X-Pingback: http://www.mylesgray.com/xmlrpc.php
Content-Length: 5132
Date: Sun, 05 Feb 2012 12:07:29 GMT
X-Varnish: 1419774133 1419774124
Age: 30
Via: 1.1 varnish
Connection: keep-alive

So wie Sie sehen können 80 war Lack und 8080 von Nginx, aber ich kann nicht finden, überall alles das, was eine 301-Weiterleitung, nicht in nginx.conf oder in der sites-enabled/default - Datei, und ich glaube, es ist nicht verursacht durch WordPress selbst, sondern ein sehr offen für Korrektur.

Bitte um Hilfe, das treibt mich in den Wahnsinn!

Myles

InformationsquelleAutor Myles Gray | 2012-02-05
Schreibe einen Kommentar