A url: front end address is: 10.66.77.20:8070, backend address is: 10.66.77.20:8081, nginx service address 192.168.100.78
How to configure nginx service, let the computer can access the Intranet, a great god, please help to give directions,
I now the configuration of the following
#user nobody;
Worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
# error_log logs/error. The log info;
# pid logs/nginx. Pid;
Events {
worker_connections 1024;
}
HTTP {
include mime.types;
default_type application/octet-stream;
# log_format main '$remote_addr - $remote_user [$time_local] "$request"'
# '$$body_bytes_sent status "$http_referer"'
# '" $http_user_agent "" $http_x_forwarded_for"';
# access_log logs/access. Log the main;
sendfile on;
# tcp_nopush on;
# keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
Server {
listen 80;
Server_name 192.168.100.78;
#charset koi8-r;
#access_log logs/host.access.log main;
The location/{
Proxy_pass http://10.66.77.20:8070/login? Redirect=% 2 f;
}
}
Server {
Listen, 81;
Server_name 192.168.100.78;
#charset koi8-r;
#access_log logs/host.access.log main;
The location/{
Proxy_pass http://10.66.77.20:8081;
}
}
# another virtual host using mix of IP -, name, and port - -based configuration
#
# server {
# 8000; listen
# listen somename: 8080;
# server_name somename alias another. Alias;
# the location/{
# root HTML;
# index index. HTML index. HTM;
#}
#}
# HTTPS server
#
# server {
443 the SSL # listen;
# server_name localhost.
# ssl_certificate cert. Pem;
# ssl_certificate_key cert. Key;
# ssl_session_cache Shared: SSL: 1 m;
# ssl_session_timeout 5 m;
# ssl_ciphers HIGH:! aNULL:! MD5;
# ssl_prefer_server_ciphers on;
# the location/{
# root HTML;
# index index. HTML index. HTM;
#}
#}
}