Home > front end >  Before and after the single end separation using nginx, reverse proxy without effect, at 404
Before and after the single end separation using nginx, reverse proxy without effect, at 404

Time:12-02

Java program is the same machine, just port 8081
Page access
Request complains, such as: curl localhost: 8090/wf/1



Configure the following
. Include the 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/home/user4a/software/QJQ nginxlog/access. The log.

Sendfile on;
# tcp_nopush on;

# keepalive_timeout 0;
Keepalive_timeout 65;

# gzip on;

Server {
Listen, 8090;
Server_name localhost.
# charset koi8 - r;


The location/{
The root HTML/re;
The index index. HTML;
}


Error_page 504/50, 500, 502, 503 x. HTML;
Location=/50 x) HTML {
The root HTML;
}

The location/API {
Proxy_pass http://localhost:8081/;
}
}
}
  • Related