Hi all,
I am a beginner in using Nginx. I want to ask if I can write a single server statement to replace to following.
[code]
server{
listen 80
server_name HostA
location / {
proxy_pass http://HostA/
}
}
server{
listen 80
server_name HostB
location / {
proxy_pass http://HostB/
}
}
......
.....
[/code]
I want this because I have a lot of of websites needed to be set and it is hard for me to configure again and again when the websites are changed