1. 1、修改HOST
    2. c:/Windows/System32/drivers/etc/hosts
    3. 192.168.56.101 www.bfire.com
    4. 2 修改 /usr/local/nginx/conf/nginx.conf
    5. http{
    6. include vhosts/*.conf;
    7. }
    8. 3、在 /usr/local/nginx/conf/vhosts/内添加bfire.com.conf
    9. server
    10. {
    11. listen 80;
    12. server_name www.bfire.com;
    13. index index.html index.htm index.php;
    14. root /data/webroot/bfire/;
    15. #limit_conn crawler 20;
    16. location ~ .*\.(php|php5)?$
    17. {
    18. fastcgi_pass unix:/dev/shm/php-cgi.sock;
    19. fastcgi_index index.php;
    20. include fcgi.conf;
    21. }
    22. # location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|data|js|css|html|htm)$
    23. # {
    24. # expires 365d;
    25. # }
    26. #
    27. access_log /data/other/nginx_logs/${host}_${server_port}_access.log main;
    28. }
    29. 4、重启 nginx
    30. #cd /usr/local/nginx/
    31. #./sbin/nginx -s reload