upstream tomcat_ server {
server localhost:8090;
}
server {
listen 80;
server_ name localhost;
charset utf-8;
access_ log logs/ host.access.log main;
location / {
proxy_ pass http://tomcat_ server
proxy_ set_ header Host $http_ Host; / / to add a host header here, return the header information to the server
}
Read More:
- Nginx reverse proxy MySQL
- NxL job cluster nginx routing forwarding and reverse proxy
- Nginx front end and back end separation + service cluster reverse proxy
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- nginx: [emerg] unknown directive “proxy_pass“
- Nginx proxy appears Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- Nginx reports 502 error, log connect() failed (111: Connection refused) while connecting to upstream. A personal effective solution
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- Google set proxy, ERR_PROXY_CONNECTION_FAILED
- Proxy error:could not proxy request
- Exception in thread “main“ java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to XXX
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- nginx: [error] invalid PID number ““ in “/data/nginx/logs/nginx.pid“
- When configuring the proxy with Vue, the front-end requests the server-side error 504; the Vue console reports the error occurred while trying to proxy request
- Using nginx page to report an error occurred
- Implementation of HTTPS file server based on nginx in win2012
- Nginx error: nginx: [error] invalid PID number “” in “/run/nginx.pid”
- /var/run/nginx/nginx.pid” failed (2: No such file or directory)
- Nginx start error: job for nginx.service failed because the control process exited with error code
- Nginx manager jupyter notebook v1.0.0 http websocket