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

Include URL rewriting support in nginx config #31

Closed
SenorSmartyPants opened this issue Nov 23, 2020 · 2 comments
Closed

Include URL rewriting support in nginx config #31

SenorSmartyPants opened this issue Nov 23, 2020 · 2 comments

Comments

@SenorSmartyPants
Copy link

linuxserver.io


Expected Behavior

When editing config_local.php to enable url writing, it should not generate a 404 error when attempting to download.
$config['cops_use_url_rewriting'] = "1";

NGINX config is listed here
https://github.com/seblucas/cops/wiki/Url-Rewriting-with-COPS

Current Behavior

404 error is generated for all /download or /view urls

Steps to Reproduce

  1. edit config_local.php to include $config['cops_use_url_rewriting'] = "1";
  2. navigate to book using COPS server.
  3. Click download, or folder buttons
  4. get 404 error

Environment

OS: Armbian
CPU architecture: arm64
How docker service was installed: from the distro repo, using armbian-setup

Command used to create docker container (run/create/compose/screenshot)

  cops:
    image: linuxserver/cops
    container_name: cops
    environment:
      - TZ=${TZ}
      - PUID=${PUID}
      - PGID=100
    volumes:
      - /opt/appdata/cops:/config
      - /mnt/storage/media/Books:/books
    ports:
      - 9090:80
    restart: unless-stopped

Docker logs

@project-bot project-bot bot added this to To do in Issue & PR Tracker Nov 23, 2020
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the issue template!

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@NgrNxk NgrNxk mentioned this issue Apr 26, 2021
1 task
Issue & PR Tracker automation moved this from To do to Done Dec 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

Successfully merging a pull request may close this issue.

1 participant