**Server1**
```
server {
listen 80;
server_name www.demo.com;
location / {
proxy_set_header Host $host;
proxy_pass http://server2.demo.com/;
}
}
```
**Server2 server2.demo.com**
```
server {
listen 80;
server_name www.demo.comt;
root /opt/www/;
index index.html index.htm;
}
```
沒有留言:
張貼留言