I started an nginx container and would like to modify the content of the default page.
I changed the file /usr/share/nginx/html/index.html
Unfortunately nginx still shows me the usual welcome page when I curl localhost.
How would I change the default page in nginx?
I disabled cache in nginx via sendfile off;
Probably you did something like this in your Dockerfile:
COPY ./index.html /usr/share/nginx/html/index.html
Try this instead:
COPY ./index.html /usr/share/nginx/html/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With