# 404 nginx error

**URL:** <https://kanboard.discourse.group/t/404-nginx-error/1924>\
**Category:** Installation Issues\
**Created:** [July 30, 2021, 5:35pm UTC](https://kanboard.discourse.group/t/404-nginx-error/1924 "2021-07-30T17:35:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jstone](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jstone](https://kanboard.discourse.group/u/jstone)\
**Post date:** [July 30, 2021, 5:35pm UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/1 "2021-07-30T17:35:03Z")

</div>

I tried using their default docker-compose config this is what happens. I’m slightly confused as I’m not even using Nginx.  
Help would be appreciated!

 ![image](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/1X/09e6bc23f0b7e1581d9f6d9b5abd2dc92d4cc0c0.png)

```auto
version: '2'
services:
  kanboard:
    image: kanboard/kanboard:latest
    ports:
      - "88:80"
      - "443:443"
    volumes:
      - kanboard_data:/var/www/app/data
      - kanboard_plugins:/var/www/app/plugins
      - kanboard_ssl:/etc/nginx/ssl
volumes:
  kanboard_data:
  kanboard_plugins:
  kanboard_ssl:

```

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [July 30, 2021, 11:04pm UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/2 "2021-07-30T23:04:35Z")

</div>

the docker image is using nginx. therefore, you are using nginx. there isn’t enough information to help you further.

---

<div class="post-metadata">

**Author:** ![jstone](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jstone](https://kanboard.discourse.group/u/jstone)\
**Post date:** [July 31, 2021, 2:09pm UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/3 "2021-07-31T14:09:00Z")

</div>

I am not sure what info I should give as this is literally all I did. The only thing is that I encountered a similar error when trying to get nextcloud to work. Not really sure if that is helpful info though.  
Would it be possible to use kanboard without nginx?

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [July 31, 2021, 5:38pm UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/4 "2021-07-31T17:38:20Z")

</div>

nginx isn’t your problem. but ya, you could build your own container and use apache. why though? the supplied docker container is literally flawless.

why are you using port 88 to 80? and keeping 443 on 443?

---

<div class="post-metadata">

**Author:** ![jstone](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jstone](https://kanboard.discourse.group/u/jstone)\
**Post date:** [July 31, 2021, 10:01pm UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/5 "2021-07-31T22:01:34Z")

</div>

I’m only using http and 80 is already in use. I just didn’t bother removing 443. I didn’t think it would cause a problem. What do you think is the problem? I am very new to this so please excuse me for my lack of knowledge.

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [August 1, 2021, 4:27am UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/6 "2021-08-01T04:27:43Z")

</div>

try 8888 and 8443 respectively. if 80 is in use then so is 443.

and you should think about using a reverse proxy.  
it will make life so much simpler.

I use:

> **[GitHub - nginx-proxy/nginx-proxy: Automated nginx proxy for Docker containers...](https://github.com/nginx-proxy/nginx-proxy)**
>
> Automated nginx proxy for Docker containers using docker-gen - GitHub - nginx-proxy/nginx-proxy: Automated nginx proxy for Docker containers using docker-gen

all assuming you want access outside local network.

---

<div class="post-metadata">

**Author:** ![jstone](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jstone](https://kanboard.discourse.group/u/jstone)\
**Post date:** [August 1, 2021, 8:49am UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/7 "2021-08-01T08:49:06Z")

</div>

Changing the port did something? I still get an error though:

 ![image](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/1X/4b9a10fdbac2330306e58f376ecdf6ea54c3a99d.png)

I have been thinking about using a reverse proxy. But I was thinking the setup would be somewhat the same so I didn’t want to make it more complex when it isn’t working. And for the time being, I only need local acces. A reverse proxy would only be useful for remote connections, right?

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [August 1, 2021, 12:04pm UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/8 "2021-08-01T12:04:31Z")

</div>

do you know how check your container logs?might help tell us what’s going on. are you using any container management, i.e. Portainer?

---

<div class="post-metadata">

**Author:** ![jstone](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jstone](https://kanboard.discourse.group/u/jstone)\
**Post date:** [August 1, 2021, 12:19pm UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/9 "2021-08-01T12:19:34Z")

</div>

I am indeed using portainer.  
Logs:

```auto

PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0"

ERROR: Unable to open primary script: /var/www/app/index.php (Permission denied)"

2021/08/01 12:13:52 [error] 16#16: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0Unable to open primary script: /var/www/app/index.php (Permission denied)" while reading response header from upstream, client: 192.168.10.188, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.10.140:8888"

2021/08/01 12:13:52 [error] 16#16: *1 open() "/var/www/app/favicon.ico" failed (13: Permission denied), client: 192.168.10.188, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.10.140:8888", referrer: "http://192.168.10.140:8888/"

PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0"

ERROR: Unable to open primary script: /var/www/app/index.php (Permission denied)"

2021/08/01 12:14:04 [error] 16#16: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0Unable to open primary script: /var/www/app/index.php (Permission denied)" while reading response header from upstream, client: 192.168.10.188, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.10.140:8888"

2021/08/01 12:14:04 [error] 16#16: *1 open() "/var/www/app/favicon.ico" failed (13: Permission denied), client: 192.168.10.188, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.10.140:8888", referrer: "http://192.168.10.140:8888/"

```

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [August 1, 2021, 4:03pm UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/10 "2021-08-01T16:03:55Z")

</div>

those look like permission issues with your volumes. I’m working on my jeep today, so I can takeba closer look tonight

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [August 2, 2021, 12:32am UTC](https://kanboard.discourse.group/t/404-nginx-error/1924/11 "2021-08-02T00:32:05Z")

</div>

so, one thing you can try, drop the compose. just add a container using “add a container”

don’t map any volumes.

then you can problem solve from there if that works, since you’ll know there is an issue with your mapped volumes.
