1. user nobody;
    2. worker_processes 1;
    3. events{
    4. worker_connections 1024;
    5. }
    6. http{
    7. server{
    8. listen 192.168.91.150:80;
    9. server_name 192.168.91.150;
    10. access_log logs/server1.access.log combined;
    11. location /
    12. {
    13. index index.html index.htm;
    14. root html/server1;
    15. autoindex on;
    16. }
    17. }
    18. server{
    19. listen 192.168.91.151:80;
    20. server_name 192.168.91.151;
    21. access_log logs/server2.access.log combined;
    22. location /
    23. {
    24. index index.html index.htm;
    25. root html/server2;
    26. autoindex on;
    27. }
    28. }
    29. }