When I did a curl -v http://site-wordpress.com:81 I received this result:
* About to connect() to site-wordpress.com port 81 (#0) * Trying ip... connected * Connected to site-wordpress.com (ip) port 81 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-unknown-linux-gnu) libcurl/7.19.7 NSS/22.214.171.124 zlib/1.2.3 libidn/1.18 libssh2/1.2.2 > Host: site-wordpress.com:81 > Accept: */* > < HTTP/1.1 301 Moved Permanently < Server: nginx/1.2.4 < Date: Fri, 16 Nov 2012 16:28:19 GMT < Content-Type: text/html; charset=UTF-8 < Transfer-Encoding: chunked < Connection: keep-alive < X-Pingback: The URL above/xmlrpc.php < Location: The URL above
Seems like this line in my fastcgi_params is causing grief.
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
If I remove this line , I get HTTP/1.1 200 OK but I get a blank page.
This is my config:
This config works with ip and port 80. But now I need to use a domain name and port 81, which doesn't work. Could someone please help. Thanks.