worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream servers2.mydomain.com {
server 192.168.2.242:8077;
server 192.168.2.242:8078;
}
upstream T2 {
server 192.168.2.242:8078;
}
server {
listen 8083;
server_name localhost;
location / {
root html;
index index.html index.htm;
proxy_pass http://servers2.mydomain.com;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 8083;
server_name www.tt.com;
location / {
root html;
index index.html index.htm;
proxy_pass http://T2;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream servers2.mydomain.com {
server 192.168.2.242:8077;
server 192.168.2.242:8078;
}
upstream T2 {
server 192.168.2.242:8078;
}
server {
listen 8083;
server_name localhost;
location / {
root html;
index index.html index.htm;
proxy_pass http://servers2.mydomain.com;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 8083;
server_name www.tt.com;
location / {
root html;
index index.html index.htm;
proxy_pass http://T2;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}