Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx - change the welcome page

Tags:

nginx

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;

like image 519
Skip Avatar asked Apr 22 '17 22:04

Skip


1 Answers

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/
like image 96
Vagner Guedes Avatar answered Oct 05 '22 12:10

Vagner Guedes