Comments (22)
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.
yep! i just installed it and this is fixed (again)! 👍
from docker.
WOW nice! I think I missed a / at some point thank you :)
from docker.
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.
same problem here. tany solution yet ?
from docker.
no ... but :4.6.2-3 is working
from docker.
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.
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.
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.
yeah you are right. If you are logged in this is no prob. Login and logout are broken
from docker.
yarp. PMA_ABSOLUTE_URI must be integrated again.
from docker.
according to this: 812590e
its no longer needed -.- why do they think that?
from docker.
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.
ok thank you. I opend one phpmyadmin/phpmyadmin#12374 :)
from docker.
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.
As I've mentioned within the commit message:
Please note that the setting will take no effect till phpMyAdmin 4.6.5.
from docker.
oh ok. thought it is closed and didnt read any commit msg :) 👍
from docker.
This will be fixed once 4.6.5 is out, in 4.6.4, the PMA_ABSOLUTE_URI has not effect.
from docker.
@jortkoopmans the broken login/logout woriking with the config from above: #40 (comment)
from docker.
To confirm, 4.6.5 is out and this is fixed yes?
from docker.
Confirmed, thanks for fixing this!
from docker.
Yes, it works. Thank you, thank you.
from docker.
Related Issues (20)
- Kubernetes: There seems to be some sort of writing protection on the docker image HOT 8
- 403 errors after using AAD authentication HOT 5
- feature request: document PMA_SOCKET and PMA_SOCKETS HOT 1
- Hide DB HOT 2
- AH00547 with APACHE_PORT=127.0.0.1:8081 and network_mode=host HOT 2
- working with read only root file system issue HOT 2
- phpmyadmin:fpm docker HOT 5
- Struggling to get phpmyadmin working HOT 1
- use cp command to copy files to image HOT 7
- Docker hub registry confusion HOT 2
- Connection refused from local forward database HOT 4
- ZIP bomb file detected in phpmyadmin docker HOT 1
- mysqli::real_connect(): (HY000/2002): No such file or directory HOT 4
- AH00534: httpd: Configuration error: More than one MPM loaded. HOT 1
- Adding option for custom themes in Environment variables
- Impossible de se connecter à la base de données Le serveur a répondu : php_network_getaddresses: getaddrinfo for MySQL failed: H�te inconnu. HOT 1
- Enable the uploadprogress PHP extension HOT 1
- Support request: Redirect to login on successful login when using fpm-alpine with nginx
- [Documentation] Missing nginx and apache reverse proxy examples HOT 1
- phpmyadmin fpm docker variant with Reverse Proxy mounting points issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.