Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
echo >> /var/www/html/index.html
cat << 'EOF' >/etc/nginx/sites-available/default
server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/html/;
        index index.html;
}
server {
        listen 443 default_server;
        listen [::]:443 default_server;
        root /var/www/html/;
        index index.html;
}
EOF
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
systemctl restart nginx
systemctl status nginx

Note: when using docker I had to setup SSL even though it was a blank site that I didn't care about...

        ssl_certificate /etc/ssl/
        ssl_certificate_key /etc/ssl/
  • No labels