Nginx静态网页最简配置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cc_want/article/details/83721626
server {
        listen       80;
        server_name  www.fcibook.com;

        location / {
            root /usr/local/web/www/;
            index index.html;
        }
}

其中:

listen为端口号

server_name为网页地址,或者IP

location中的root指定本地静态网页目录

猜你喜欢

转载自blog.csdn.net/cc_want/article/details/83721626