404 Error when testing with Docker Compose
-
Hello, thank you for making this plugin. I have created the following compose.yaml file:
version: '3.1' services: wordpress: image: wordpress restart: always ports: - 8080:80 environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: exampleuser WORDPRESS_DB_PASSWORD: examplepass WORDPRESS_DB_NAME: exampledb volumes: - wordpress:/var/www/html db: image: mysql:5.7 restart: always environment: MYSQL_DATABASE: exampledb MYSQL_USER: exampleuser MYSQL_PASSWORD: examplepass MYSQL_RANDOM_ROOT_PASSWORD: '1' volumes: - db:/var/lib/mysql volumes: wordpress: db:And then navigated to localhost:8080 and installed your plugin.
Then I added a new redirection, using “/test” as the source url, and https://example.com as the target url.
When I click the link “/test” in on the newly added redirect, I receive a 404 error.
“Not FoundThe requested URL was not found on this server.Apache/2.4.56 (Debian) Server at localhost Port 8080″
I imagine this might be related to the fact that I am running in a Docker container. But I received no errors when installing the plugin, including the step where the REST API was setup.
Also I have checked the Support tab, and everything is listed as “Good”. I get a 200 status code when using the checker on https://example.com. It mentioned sometimes the cache can be to blame for unexpected behavior, so I opened another browser and navigated to localhost:8080/test, and still receive the 404. If I remove /test, my local WordPress blog loads normally.
The topic ‘404 Error when testing with Docker Compose’ is closed to new replies.