ft_server project of 42 school
sudo service nginx stop
build: sudo docker build . -t test
defaut : sudo docker run --name tester -it --rm -p 80:80 -p 443:443 test
choix autoindex : sudo docker run -e AUTOINDEX=true --name tester -it --rm -p 80:80 -p 443:443 test
access bash sudo docker exec -it tester bash
commands:
sudo docker exec -it tester bash
sudo service nginx stop
docker build . -t test
docker rm
sudo docker run -e autoindex=0 --name tester -it --rm -p 80:80 -p 443:443 pwett
ip addr show eth0 | grep inet | awk '{ print
77 docker build . -t toto 678 docker run -it -p 80:80 -p 443:443 toto 679 docker -e "index=on" run -it -p 80:80 -p 443:443 toto 680 docker run -e "autoindex off" -it -p 80:80 -p 443:443 toto\n 681 docker run -e "autoindex on" -it -p 80:80 -p 443:443 toto\n 682 vim srcs/default 683 docker build . -t toto 684 docker run -e "autoindex on" -it -p 80:80 -p 443:443 toto\n 685 docker run -e "autoindex=on" -it -p 80:80 -p 443:443 toto\n 686 docker run -e "index=on" -it -p 80:80 -p 443:443 toto\n 687 docker run -e "index on" -it -p 80:80 -p 443:443 toto\n
index auto on/off:
docker clean up : sudo docker image prune (https://docs.docker.com/config/pruning/) and then pray
SSL https://www.digicert.com/easy-csr/openssl.htm https://www.digicert.com/kb/ssl-support/openssl-quick-reference-guide.htm#Usingthe-subjSwitch https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-on-centos-7
sudo docker inspect tester get ip sudo docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' tester
ctrl R pour rafraichir le cache f12 disable cache docker system prune -a
chrome et firefox navigation privé, suppression cache partout