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

Error when using proxy server for nginx. #232

Open
meyo426 opened this issue May 11, 2017 · 0 comments
Open

Error when using proxy server for nginx. #232

meyo426 opened this issue May 11, 2017 · 0 comments

Comments

@meyo426
Copy link

meyo426 commented May 11, 2017

This is my nginx conf file.

server{
        listen 80;
        server_name /corus-pro/api/v1.0/;

        location /{
            proxy_redirect     off;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $remote_addr;
            proxy_pass http://corus.kaist.ac.kr:8080/jsondoc-ui.html?url=http://corus.kaist.ac.kr:8080/jsondoc;
        }
}

However, if i attempt to access, i will find a screen that has not found all of the js files.

I found problems.
and there is html DOM in bootstrap.min.css file.;
so error occur in browser console.

like this :
Uncaught SyntaxError: Unexpected token <
handlebars.min.js:1 Uncaught SyntaxError: Unexpected token <
prettify.js:1 Uncaught SyntaxError: Unexpected token <
jlinq.js:1 Uncaught SyntaxError: Unexpected token <
jsondoc.js:1 Uncaught SyntaxError: Unexpected token <
...

Why is it occur? and how can I fix it?

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