配置nginx虚拟主机
cbb和top域名事先解析
vi /usr/local/nginx/conf/nginx.conf
==èwww.cbb.com公司网站
server
{
listen 80;
server_name www.cbb.com;
index index.html index.htm index.php;
root /home/wwwroot/default/cbb;
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
}
==èwww.top.com公司网站
server
{
listen 80;
server_name www.top.com;
index index.html index.htm index.php;
root /home/wwwroot/top;
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
}
重启nginx
/etc/init.d/nginx restart
本文由
wilkins创作
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: 2017-09-14 14
*更多学习视频资料请关照博主的星球,扫一扫下方的星球二维码加入

*更多区块链技术视频资料请关照博主的星球,扫一扫下方的星球二维码加入

*喜欢本文章觉得有帮助的话,扫个打赏码,给博主打赏个买菜钱$

wf8W0H http://www.LnAJ7K8QSpfMO2wQ8gO.com
8GctUu https://www.genericpharmacydrug.com