Skip to content

Subdirectory Nginx Proxy_pass #334

@jonathanmmm

Description

@jonathanmmm

Hi,

I found this one #101 but this is not about nginx.
and tried many different ways, but I can't get it right

server {
listen 8080;
server_name  10.8.0.1;
  location /mysql {
    rewrite /mysql/([^/]+) /$1 break;
    set $upstream_phpmyadmin phpmyadmin:80;
    proxy_pass http://upstream_phpmyadmin/;
    proxy_pass_header Content-Type;
  }
}

The PMA_URI is in docker-compose.yml
- PMA_ABSOLUTE_URI=http://10.8.0.1/mysql/

nginx is inside a container and has -p 80:8080 to the outside world

I get the following error in browser (chromium) console:
crbug/1173575, non-JS module files deprecated.

sometimes I got 404 forbidden or not found, e.g. with css/js, tried a lot and couldn't get it to work.

Does somebody know how to solve this?
I try the same setup with an phplapadmin container and it didn't work either.

without subfolder it works.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions