L
L
lolowin322020-06-19 15:16:05
Nginx
lolowin32, 2020-06-19 15:16:05

How to set up a bunch of apache + nginx?

Good afternoon, I use a container with Alpine Linux (alpine-3.11), apache and nginx are installed on it, nginx is used as front-end for apache. When accessing the nginx server, some of the content on the page is missing

5eeca16d8b3ff679120793.png

While when accessing apache, the situation is completely different

5eeca193ce1a6003743345.png

Maybe this is normal and I do not understand something correctly, or something goes wrong

nginx config

listen *:80; 
server_name nginx-dokuwiki.local;
access_log /var/log/nginx/access.log;
location / {

proxy_pass http://192.168.88.2:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 180;
}

location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt)$ {
root /var/www;
try_files $uri $uri/ /index.php;
}
}


Please tell me where to dig. Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2020-06-19
@SignFinder

You have pictures in a separate location - they are taken by nginx directly, bypassing apache - check if the user running nginx has permissions to the /var/www directory and files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question