diff --git a/data/default.conf b/data/default.conf new file mode 100644 index 0000000..209159c --- /dev/null +++ b/data/default.conf @@ -0,0 +1,9 @@ +server { + listen 80; + server_name _; + + location / { + root /var/www/html; + index index.html; + } +} \ No newline at end of file diff --git a/data/index.html b/data/index.html new file mode 100644 index 0000000..d07d647 --- /dev/null +++ b/data/index.html @@ -0,0 +1,17 @@ + + + + + + + VM Experiments + + + +

Welcome to VM Experiments!

+

Below you can download the required Certificate Authority.

+

You can import it on Firefox and in your operating system.

+ Download Here! + + + \ No newline at end of file diff --git a/installation/ca.sh b/installation/ca.sh index 2ab0f24..bf8de5a 100755 --- a/installation/ca.sh +++ b/installation/ca.sh @@ -5,3 +5,9 @@ sudo openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /ro sudo cp /root/ca.crt /usr/local/share/ca-certificates/ sudo cp /root/ca.crt /etc/ssl/certs/ sudo update-ca-certificates + +sudo mkdir -p /var/www/html +sudo cp ../data/index.html /var/www/html/ +sudo cp /root/ca.crt /var/www/html/ +sudo cp ../data/default.conf /etc/nginx/sites-available/default +sudo systemctl restart nginx