
server {
listen 192.168.1.104:80;
server_name mydomain.com www.mydomain.com;
access_log /var/log/nginx/mydomain.com.access.log ;
error_log /var/log/nginx/mydomain.com.error.log ;
location / {
proxy_pass http://192.168.1.101:8080/ ;
include /usr/local/etc/nginx/proxy.conf;
}
}
Binding {
Port = 80
Interface = 192.168.1.26
}
Binding {
BindingID = BIND1
Interface = 192.168.1.101
Port = 8080
}
VirtualHost {
Hostname = www.mydomain.com
WebsiteRoot = /var/www/domains/www.mydomain.com/htdocs
RequiredBinding = BIND1
StartFile = index.html
AccessLogfile = /var/www/domains/www.mydomain.com/logs/access.log
ErrorLogfile = /var/www/domains/www.mydomain.com/logs/error.log
}
VirtualHost {
Hostname = www.mydomain.com
....
ReverseProxy .* http://192.168.1.101:8080/
}
Binding {
Port = 80
Interface = 192.168.1.104
}
VirtualHost {
Hostname = www.mydomain.com
ReverseProxy .* http://192.168.1.201:8080/
}
VirtualHost {
Hostname = www.otherdomain.com
ReverseProxy .* http://192.168.1.202:8080/
}
VirtualHost {
Hostname = www.itsmydomain.com
ReverseProxy .* http://192.168.1.203:8080/}
}
VirtualHost {
Hostname = www.anotherdomain.com
ReverseProxy .* http://192.168.1.204:8080/
}
Binding {
Port = 80
Interface = 192.168.1.26
}
Binding {
BindingID = BIND1
Interface = 192.168.1.201
Port = 8080
}
Binding {
BindingID = BIND2
Interface = 192.168.1.202
Port = 8080
}
Binding {
BindingID = BIND3
Interface = 192.168.1.203
Port = 8080
}
Binding {
BindingID = BIND4
Interface = 192.168.1.204
Port = 8080
}
VirtualHost {
Hostname = www.mydomain.com
WebsiteRoot = /var/www/domains/www.mydomain.com/htdocs
RequiredBinding = BIND1
StartFile = index.html
AccessLogfile = /var/www/domains/www.mydomain.com/logs/access.log
ErrorLogfile = /var/www/domains/www.mydomain.com/logs/error.log
}
VirtualHost {
Hostname = www.otherdomain.com
WebsiteRoot = /var/www/domains/www.otherdomain.com/htdocs
RequiredBinding = BIND2
StartFile = index.html
AccessLogfile = /var/www/domains/www.otherdomain.com/logs/access.log
ErrorLogfile = /var/www/domains/www.otherdomain.com/logs/error.log
}
VirtualHost {
Hostname = www.itsmydomain.com
WebsiteRoot = /var/www/domains/www.itsmydomain.com/htdocs
RequiredBinding = BIND3
StartFile = index.html
AccessLogfile = /var/www/domains/www.itsmydomain.com/logs/access.log
ErrorLogfile = /var/www/domains/www.itsmydomain.com/logs/error.log
}
VirtualHost {
Hostname = www.anotherdomain.com
WebsiteRoot = /var/www/domains/www.anotherdomain.com/htdocs
RequiredBinding = BIND4
StartFile = index.html
AccessLogfile = /var/www/domains/www.anotherdomain.com/logs/access.log
ErrorLogfile = /var/www/domains/www.anotherdomain.com/logs/error.log
}