Answer the question
In order to leave comments, you need to log in
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
While when accessing apache, the situation is completely different
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;
}
}
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question