Is this a nginx problem or phpmyadmin's?

I put phpmyadmin on my nginx powered vps. Every time I login to
phpmyadmin, the server portion of the url will be appended a dot (.)
this works the first time, but will quickly fail because it keeps adding
dots every time I login/logout. E.g.

The login page is:

http://mysql.mydomain.com/

After a successful login, it becomes:

http://mysql.mydomain.com./index.php?session=12341243… ← Note the
dot after “com”

If I logout and login again, it becomes:

http://mysql.mydomain.com…/index.php?session=12341243… ← Note the
two dots after “com”

Now this will definitely fail. Some time, may be phpmyadmin is doing
internal redirection (I am not sure), this double dot problem appears
instantly after I login, and firefox shows me a failure page.

Thank you!
xrfang

Posted at Nginx Forum:

maybe something wrong with your rewrite rule?

On Tue, Nov 17, 2009 at 8:16 AM, xrfang [email protected] wrote:

instantly after I login, and firefox shows me a failure page.

Thank you!
xrfang

Posted at Nginx Forum:
Is this a nginx problem or phpmyadmin's?

Regards,
Kiswono P
GB

I don’t have any rewrite rule for this, my vhost configure is:

server {
server_name mysql.qumanyou.com;
root /var/www/myadmin;
include common_params;
}

where /var/www/admin is the folder containing phpmyadmin. The content
for common_params:

listen 80;
#index index.html index.php;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

error_page 404 /404.php;
location = /404.php {
root /var/www/errors;
include phpfcgi_params;
}

location / {
index index.html index.php;
}

location ~ .php$ {
if (!-f $request_filename) {
return 404;
}
include phpfcgi_params;
}

The content of phpfcgi_params:

fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 32k;
fastcgi_buffers 8 32k;
include fastcgi_params;

fastcgi_params is the default nginx fcgi configuration file.


Thank you!

Posted at Nginx Forum:

i guess, your configuration on config.inc.php was wrong?
may i see it? (just remove the secret/password thing from the file)