範例:
server {
listen 80;
root /opt/htdocs/vector.cool;
index index.html index.htm;
server_name vector.cool;
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 80;
root /opt/htdocs/v123.tw;
index index.html index.htm;
server_name v123.tw;
location / {
try_files $uri $uri/ =404;
}
}