In some circumstances everything you need to have is a static page in the air, punctual things, a launch page, simplicity. Here's how to configure NGINX for this task:
Step 1 - Configure root DNS and preferably www to point to root
Step 2 - Install NGINX (In the example, in Ubuntu)
apt-get install nginx
Step 3 - Create the configuration file, in the example '/var/nginx/sites-available/zerokol.com'
Step 4 - Create a symbolic link from this file to the active folder in NGINX
ln -s /etc/nginx/sites-available/zerokol.com /etc/nginx/sites-enabled/zerokol.com
Step 5 - Insert any HTML page in '/var/www/html/zerokol/index.html'
Step 6 - Restart NGINX
/etc/init.d/nginx restart
Just test it!
Setup NGINX to serve a static site
Reviewed by AJ Alves
on
terça-feira, dezembro 05, 2017
Rating:
Nenhum comentário:
Postar um comentário