lnmp一键安装包 配置多站点

在/usr/local/nginx/conf/vhost下配置xxx.conf,配置如下信息

server {
    listen       80; 
    server_name  www.centos.com    centos.com;
    root   /home/wwwroot/test;
    location / {
        index index.php;
        #autoindex on;
    }   

    location ~ \.php$ {
        include /usr/local/nginx/conf/fastcgi.conf; 
        fastcgi_pass unix:/tmp/php-cgi.sock;
    }
}

猜你喜欢

转载自www.cnblogs.com/walblog/p/9067263.html