my proxy configuration is not working on Nginx . I have a docker nextcloud Container running on 10.0.100.6 and can access it through 10.0.100.6:8080 but if want to access it through /nextcloud its not working. nginx error . i can access the nginx standart page
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /nextcloud {
proxy_pass http://10.0.100.6:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
even tried the proxypass deleting all other options But same story. Not working :(
location /nextcloud {
proxy_pass http://10.0.100.6:8080/;
}
nginx syntax checker says everthing ok .