1. server {<br /> listen 80;//nginx服务器监听的端口号<br /> server_name localhost;//nginx服务器的主机名称(是Linux的地址,不是windows的地址)
    2. #charset koi8-r;
    3. #access_log logs/host.access.log main;
    4. location / {<br /> root html;<br />** proxy_pass http://localhost:8080;//新增的一行,表示当输入**localhost: 80/时帮我们跳转到这个地址访问<br /> index index.html index.htm;<br /> }