Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the fpm image in a subdirectory of the proxy #2187

Open
blicknix opened this issue Mar 21, 2024 · 0 comments
Open

Using the fpm image in a subdirectory of the proxy #2187

blicknix opened this issue Mar 21, 2024 · 0 comments
Labels
docs integration: proxy Integrating with a reverse proxy question

Comments

@blicknix
Copy link

We try to run the fpm image in a sub directory with the config for the nginx proxy from the config from the nextcloud documentation. While everything works with no sub directory, we get 404 from the app container as the scripts are tried to be accessed from with the sub directory attached.
We tried to change the parameters for overwritewebroot and the other overwrite parameters, but nothing helped with this issue.

Docker compose

version: '3'

services:
  db:
    image: mariadb:10.6
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    restart: always
    volumes:
      - db:/var/lib/mysql:Z
    environment:
      - MYSQL_ROOT_PASSWORD=abcdefg
      - MARIADB_AUTO_UPGRADE=1
      - MARIADB_DISABLE_UPGRADE_BACKUP=1
    env_file:
      - db.env
  redis:
    image: redis:alpine
    restart: always

  app:
    image: nextcloud:28.0.3-fpm-alpine
    restart: always
    volumes:
      - nextcloud:/var/www/html:z
    environment:
      - MYSQL_HOST=db
      - REDIS_HOST=redis
    env_file:
      - db.env
    depends_on:
      - db
      - redis

  web:
    build: ./web
    restart: always
    volumes:
      - nextcloud:/var/www/nextcloud:z,ro
    ports:
      - 10.128.6.106:443:443
      - 10.128.6.106:80:80
    depends_on:
      - app
        
  cron:
    image: nextcloud:28.0.3-fpm-alpine
    restart: always
    volumes:
      - nextcloud:/var/www/html:z
    entrypoint: /cron.sh
    depends_on:
      - db
      - redis

volumes:
  db:
  nextcloud:

nginx.conf

Logs for app container

172.21.0.5 -  21/Mar/2024:22:18:11 +0000 "GET /nextcloud/index.php" 404
172.21.0.5 -  21/Mar/2024:22:18:16 +0000 "GET /nextcloud/ocs/v2.php" 404
172.21.0.5 -  21/Mar/2024:22:18:20 +0000 "PUT /nextcloud/ocs/v2.php" 404
172.21.0.5 -  21/Mar/2024:22:18:46 +0000 "GET /nextcloud/ocs/v2.php" 404
@J0WI J0WI added the question label Mar 29, 2024
@joshtrichards joshtrichards added docs integration: proxy Integrating with a reverse proxy labels Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs integration: proxy Integrating with a reverse proxy question
Projects
None yet
Development

No branches or pull requests

3 participants