Code Monkey home page Code Monkey logo

Comments (22)

sgohl avatar sgohl commented on September 12, 2024 4

mhmm, I'll just post my config, maybe it helps you:

docker run -e PMA_ABSOLUTE_URI="https://mydomain.com/phpmyadmin/" phpmyadmin/phpmyadmin:4.6.2-3

location /phpmyadmin/ {
  proxy_pass http://phpmyadmin/;
  proxy_redirect off;
  proxy_set_header Host $host;
}

actually I'm not sure if proxy_redirect could be omitted, but seems the only difference.
I am using the default config from jwilder/nginx-proxy. Not sure if

proxy_set_header X-Real-IP  $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;

is default there ... perhaps test switching that. and notice the slashes, especially under location.

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024 3

yep! i just installed it and this is fixed (again)! 👍

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024 1

WOW nice! I think I missed a / at some point thank you :)

from docker.

jortkoopmans avatar jortkoopmans commented on September 12, 2024 1

Got bitten by this one today as well. What nginx config worked for you in the end (with the broken login/logout)?

I couldnt get anywhere without rewriting, not sure if its best:

location ~ \/pma {
    rewrite ^/pma(/.*)$ $1 break;
    proxy_set_header X-Real-IP  $remote_addr;
    proxy_set_header HOST $host;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_pass      http://phpmyadmin1;

with PMA_ABSOLUTE_URI set to "http://example.net/pma/
Login and logout are broken....
Running latest container which should be is v4.6.4

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024

same problem here. tany solution yet ?

from docker.

sgohl avatar sgohl commented on September 12, 2024

no ... but :4.6.2-3 is working

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024

mmm I got the same problem with 4.6.2-3
ngnix:

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://myadmin;
    }

I also checked the config.inc.php inside the container and found no $cfg['PmaAbsoluteUri']

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024

ok now I tested and it with the working settings from :4.6.2-3 at the :latest build, and it worked as well! can you give it a try ?

from docker.

sgohl avatar sgohl commented on September 12, 2024

tested, well, not really working, got a 404 after login,. If I manually change the url after login, I'm in.

tested on chrome and firefox incognito, no cache prob. of course I did docker pull before testing the :latest

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024

yeah you are right. If you are logged in this is no prob. Login and logout are broken

from docker.

sgohl avatar sgohl commented on September 12, 2024

yarp. PMA_ABSOLUTE_URI must be integrated again.

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024

according to this: 812590e
its no longer needed -.- why do they think that?

from docker.

nijel avatar nijel commented on September 12, 2024

It was removed from Docker as it's no longer supported upstream, $cfg['PmaAbsoluteUri'] has been removed. If you want it back, please open issue at https://github.com/phpmyadmin/phpmyadmin/issues

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024

ok thank you. I opend one phpmyadmin/phpmyadmin#12374 :)

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024

thanks, but login/logout not working for me with this fix. I run it like this:

docker run [...] -e PMA_ABSOLUTE_URI="https://mydomain.com/phpmyadmin/" -d --link mariadb:db phpmyadmin/phpmyadmin:latest

If I login/logout it redirects me to "https://mydomain.com" without "/phpmyadmin"
If I add it to the url by hand after redirect it works till logout

working without problems:
... phpmyadmin/phpmyadmin:4.6.2-3

am I wrong?

from docker.

nijel avatar nijel commented on September 12, 2024

As I've mentioned within the commit message:

Please note that the setting will take no effect till phpMyAdmin 4.6.5.

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024

oh ok. thought it is closed and didnt read any commit msg :) 👍

from docker.

nijel avatar nijel commented on September 12, 2024

This will be fixed once 4.6.5 is out, in 4.6.4, the PMA_ABSOLUTE_URI has not effect.

from docker.

cracker0dks avatar cracker0dks commented on September 12, 2024

@jortkoopmans the broken login/logout woriking with the config from above: #40 (comment)

from docker.

sul4bh avatar sul4bh commented on September 12, 2024

To confirm, 4.6.5 is out and this is fixed yes?

from docker.

jortkoopmans avatar jortkoopmans commented on September 12, 2024

Confirmed, thanks for fixing this!

from docker.

sul4bh avatar sul4bh commented on September 12, 2024

Yes, it works. Thank you, thank you.

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.