How To Set Up Nginx Server Blocks (Virtual Hosts) - Step-by-step

preview_player
Показать описание
Thanks for watching. like this page and support.

/usr/local/etc/nginx (Intel Macs) or /opt/homebrew/etc/nginx (M1/M2/M3 Macs)

which nginx - to find the installation path

server {
listen 80;

location / {
root /path/to/your/website; # Replace with your website's root directory
}
}

sudo nano /etc/hosts

sudo nginx -s reload
Рекомендации по теме