Open pgalonza opened 1 week ago
@pgalonza Can you give me location where you got the nginx docker. Also include your custom nginx.conf if possible. Thx.
@cy33hc nginx.conf.txt
working version
docker run --rm --name nginx -p 8000:8000 -v ./:/Nintendo/Switch:ro -v ./nginx.conf:/etc/nginx/nginx.conf:ro nginx:1.27
when redirect to port 80 if 'GET' request to directory without a slash at the end
docker run --rm --name nginx -p 80:8000 -v ./:/Nintendo/Switch:ro -v ./nginx.conf:/etc/nginx/nginx.conf:ro nginx:1.27
Hi, I want to share my observation. I run Nginx in docker with "autoindex on" parameter for share files. Path for directory look like "\<folder>/" but application create GET request without a slash at the end and Nginx send 301 redirect.
It is not problem, but with port forwarding with different port number(8000 to 80), Nginx redirect on port which he listening(80).