Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docker Multisite Install - getting 'bad request' for the root site. #958

scyto started this conversation in General
Discussion options

I have a multisite install, it was working fine for ages, it is behind a nginx reverse proxy

It can still serve the website www.mydomain.com and blog.mydomain.com

however when I try and access the wp-admin (or heck any url) on mydomain.com i get the following error:

Bad Request
Your browser sent a request that this server could not understand.
Apache/2.4.62 (Debian) Server at 10.0.14.6 Port 80

this is my stack

services:
 db:
 image: mysql:5.7
 volumes:
 - dbdata:/var/lib/mysql
 restart: always
 environment:
 MYSQL_ROOT_PASSWORD: redacted
 MYSQL_DATABASE: wordpressdb
 MYSQL_USER: alexb
 MYSQL_PASSWORD: redacted
 deploy:
 mode: replicated
 replicas: 1
 wordpress:
 image: wordpress:latest
 ports:
 - 8080:80
 - 9090:9000
 restart: always
 environment:
 WORDPRESS_DB_HOST: db:3306
 WORDPRESS_DB_USER: redacted
 WORDPRESS_DB_PASSWORD: redacted
 WORDPRESS_DB_NAME: wordpressdb
 extra_hosts:
 - mydomain.com: redactedIP
 volumes:
 - www:/var/www/html
 
 deploy:
 mode: replicated
 replicas: 1
volumes:
 dbdata:
 driver: gluster-vol1
 www:
 driver: gluster-vol1

i am fairly certain i don't have an nginx issue as the two main sites are working fine and i am not getting the infinte redirect loop

i am really not sure where to go from here

You must be logged in to vote

Replies: 2 comments

Comment options

I tried reverting to an old wordpress - 6.0, that made no difference

You must be logged in to vote
0 replies
Comment options

I just freshly tested https://github.com/docker-library/docs/blob/ec38fa90d3dd362dc541983d94bdc1aa2545787f/wordpress/stack.yml and didn't have any issues with the resulting site -- do you have a simple way we can reproduce?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #957 on April 21, 2025 23:50.

AltStyle によって変換されたページ (->オリジナル) /