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:
![Setup NGINX to serve a static site](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWAFtZum8sbb8QO1W7q2zykqQaAqQPDdq8gyOpdkd5o0_9-MsI4I92mEy7M3IRw0Tn7k1ZBUeqw5O3a22F2uGfdT8yxijtfdjVzT6R-UNqI7BUmX3hPs7OMnm550AY1htnX15Kd3Ziw3Kk/s72-c/Lessons-Learned-in-Shipping-a-Static-Site-to-S3-by-Steven-Purr-and-Rachel-Donovan.png)
Nenhum comentário:
Postar um comentário