Not every GoogleBot enquiry is blocked which is a puzzle. But enough to render the page rank n/a.
I have tried to add a trailing "/" after the docroot as would be required by the alias command.
I am also trying to remove the "/" from the redirect as well as the "/" in the substitution so it is:
server {
listen 80;
server_name mydomain.com;
rewrite ^(.*) http://www.mydomain.com$1 permanent;
}
in case a page is requested with a ? without the "/".
I am sure it is not in the apache (on port 8081) config which is very simple:
<VirtualHost *:8081>
ServerAdmin webmaster@mydomain.com
DocumentRoot /home/user/www/mydomain.com/docroot
ServerName www.mydomain.com
CustomLog /home/user/logs/mydomain.com/access_log combined
ErrorLog /home/user/logs/mydomain.com/error_log
<DIRECTORY /home/user/www/mydomain.com/docroot >
OPTIONS FollowSymLinks
AllowOverride All
</DIRECTORY>
IndexOptions FancyIndexing
</VirtualHost>