website, it was found that all static jsp pages could not be opened. Chrome reported ERR_EMPTY_RESPONSE
.
nginx
began to think that it was an internal call to http.
created a test jsp page with nothing written and the result could not be opened. Create a HTML page, which you can open.
nginx configuration
server {
listen 80;
server_name xxxx.com www.xxxx.com;
location / {
proxy_pass http://127.0.0.1:18652;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
access_log /var/log/nginx/www.xxxx.com.log;
}
}
-sharp PC
server {
listen 443 ssl ;
server_name www.xxxx.com xxxx.com;
access_log /var/log/nginx/www.xxxx.com.log;
ssl_certificate /etc/nginx/conf.d/xxxx_cert/ServerCertificate.cer;
ssl_certificate_key /etc/nginx/conf.d/xxxx_cert/www.xxxx.com_key.txt;
ssl_trusted_certificate /etc/nginx/conf.d/xxxx_cert_bak/CACertificate-INTERMEDIATE-1.cer;
ssl_stapling off;
add_header Strict-Transport-Security max-age=16588800 always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Frame-Options SAMEORIGIN always;
add_header X-Content-Type-Options nosniff always;
add_header Cache-Control no-cache always;
include conf.d/safe/safe.conf;
location / {
proxy_pass http://127.0.0.1:18652;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
access_log /var/log/nginx/www.xxxx.com.log;
}
}