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!
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 :(
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.