forked from DevProjectsForDevOps/StudentCoursesRestAPI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkuchbhi.txt
39 lines (31 loc) · 1023 Bytes
/
kuchbhi.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
upstream app_server {
server unix:/var/www/html/config/puma.rb fail_timeout=0;
}
# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
# index index.html index.htm index.nginx-debian.html;
try_files $uri/index.html $uri @app;
server_name _;
location @app {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://app_server;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
# SSL configuration goes here if needed
}
this is nginx configuration file and we got error 502 bad request can tell me why