server {
listen 80;
server_name www.fcibook.com;
location / {
root /usr/local/web/www/;
index index.html;
}
}
其中:
listen为端口号
server_name为网页地址,或者IP
location中的root指定本地静态网页目录
server {
listen 80;
server_name www.fcibook.com;
location / {
root /usr/local/web/www/;
index index.html;
}
}
其中:
listen为端口号
server_name为网页地址,或者IP
location中的root指定本地静态网页目录