Report this

What is the reason for this report?

phpmyadmin problem nginx reverse proxy

Posted on October 11, 2013

I configured nginx with apache2. it seems works, but I can not log in. it shows me the site is unavailable when I type my password and submit. then I retype mydomain/phpmyadmin/ once again I logged into the admin. How is it possibe?

phpmyadmin nginx block:

location ~* ^/phpmyadmin { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass http://127.0.0.1:8080; client_max_body_size 10m; client_body_buffer_size 128k;

proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;

proxy_buffer_size 32k;
proxy_buffers 8 16k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;

}


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I just spent a good long while trying to get this to work on my setup. Basically exactly the same with an Nginx reverse proxy onto an apache backend with phpmyadmin in a subdirectory. <br> <br>The thing that fixed it for me was to set the phpmyadmin config variable <br> <br>$cfg[‘PmaAbsoluteUri’] <br> <br>to the url that your users should see. In my case it was something like <br> <br>$cfg[‘PmaAbsoluteUri’] = ‘https://example.com/pma/’; <br> <br>I did manage to get Nginx to rewrite the redirects correctly in order to let me in but I found phpmyadmin was riddled with links that were incorrect so I figured fixing my Nginx configuration was not the solution.

Did you follow either <a href=“https://www.digitalocean.com/community/articles/how-to-install-phpmyadmin-on-a-lemp-server”>How To Install phpMyAdmin on a LEMP server</a> or <a href=“https://www.digitalocean.com/community/articles/how-to-install-and-secure-phpmyadmin-on-ubuntu-12-04”>How To Install and Secure phpMyAdmin on Ubuntu 12.04</a>

yes Ive tried everything but does not work. :(( always redirect to :8080 but works on :80 if I manually retype to :80 <br> <br>ports in redirect mode is useless :(

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.