Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger not running behind nginx. static context not loading #99

Open
kanhaiyaagarwal opened this issue May 15, 2017 · 0 comments
Open

Comments

@kanhaiyaagarwal
Copy link

all get of swagger-static
"GET /swagger-static/lib/marked.js HTTP/1.0"
giving
404

my niginx setting:

server {
listen 8888;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

 location /recko/ {
  proxy_pass http://localhost:8001/;
  proxy_set_header Host               $host;
  proxy_set_header X-Real-IP          $remote_addr;
  proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Host   $host;
  proxy_set_header X-Forwarded-Server $host;
  proxy_set_header X-Forwarded-Proto  $scheme;

}
}

looks like issue of relative url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant