What is causing this 301 redirect?
I have a problem with my server redirecting `http://www.mylesgray.com:8080/` -> `http://www.mylesgray.com/`.

This is rather a nusance as I am trying to run a benchmark of **Nginx w/ caching** vs **Varnish w/ caching on top of Nginx** to see if there is any performance benefit of one over the other.

As such I have straight Nginx w/ caching listening on port `8080` and varnish on port `80` which forwards any non-cached requests to Nginx on `localhost:8080`, so obviously what I want to do is run an `ab` benchmark on `http://www.mylesgray.com:8080/` and on `http://www.mylesgray.com/` to see the difference.

But I can't do this as if you run `curl -I http://www.mylesgray.com:8080` you will get this:

<pre><code># 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/</code></pre>

Then running `curl -I http://www.mylesgray.com` gives:

<pre><code># 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
</code></pre>

So as you can see one is served by Varnish and the other by Nginx but I cannot find **anywhere** anything that does a 301 redirect, not in `nginx.conf` or in the `sites-enabled/default` file and I don't believe it is caused by Wordpress itself but an very much open to correction.

Please help, this is driving me nuts!

Myles
What is causing this 301 redirect?
===

I have a problem with my server redirecting `http://www.mylesgray.com:8080/` -> `http://www.mylesgray.com/`.

This is rather a nusance as I am trying to run a benchmark of **Nginx w/ caching** vs **Varnish w/ caching on top of Nginx** to see if there is any performance benefit of one over the other.

As such I have straight Nginx w/ caching listening on port `8080` and varnish on port `80` which forwards any non-cached requests to Nginx on `localhost:8080`, so obviously what I want to do is run an `ab` benchmark on `http://www.mylesgray.com:8080/` and on `http://www.mylesgray.com/` to see the difference.

But I can't do this as if you run `curl -I http://www.mylesgray.com:8080` you will get this:

<pre><code># 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/</code></pre>

Then running `curl -I http://www.mylesgray.com` gives:

<pre><code># 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
</code></pre>

So as you can see one is served by Varnish and the other by Nginx but I cannot find **anywhere** anything that does a 301 redirect, not in `nginx.conf` or in the `sites-enabled/default` file and I don't believe it is caused by Wordpress itself but an very much open to correction.

Please help, this is driving me nuts!

Myles