1、修改HOST
c:/Windows/System32/drivers/etc/hosts
192.168.56.101 www.bfire.com
2、 修改 /usr/local/nginx/conf/nginx.conf
http{
include vhosts/*.conf;
}
3、在 /usr/local/nginx/conf/vhosts/内添加bfire.com.conf
server
{
listen 80;
server_name www.bfire.com;
index index.html index.htm index.php;
root /data/webroot/bfire/;
#limit_conn crawler 20;
location ~ .*\.(php|php5)?$
{
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
# location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|data|js|css|html|htm)$
# {
# expires 365d;
# }
#
access_log /data/other/nginx_logs/${host}_${server_port}_access.log main;
}
4、重启 nginx
#cd /usr/local/nginx/
#./sbin/nginx -s reload