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

madness behind a proxy #24

Closed
bodsch opened this issue Mar 16, 2017 · 3 comments
Closed

madness behind a proxy #24

bodsch opened this issue Mar 16, 2017 · 3 comments

Comments

@bodsch
Copy link

bodsch commented Mar 16, 2017

I configured a madness service behind a proxy with additional route /doc (http://proxy/doc)

madness redicted the request back to / (also missing my proxy route)

curl -v http://localhost/doc/index.md
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /doc/index.md HTTP/1.1
> Host: localhost
> User-Agent: curl/7.53.0
> Accept: */*
> 
< HTTP/1.1 302 Found 
< Server: nginx/1.10.2
< Date: Thu, 16 Mar 2017 18:18:04 GMT
< Content-Type: text/html;charset=utf-8
< Content-Length: 0
< Connection: keep-alive
< Location: http://localhost/index
< X-Xss-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN

it is possibility to configure a proxy-route into madness?

@bodsch bodsch changed the title service behind a proxy madness behind a proxy Mar 16, 2017
@DannyBen
Copy link
Owner

DannyBen commented Mar 16, 2017

It was not designed for that use case, no. It is expected to run where its documents are served from the root URL.

This is the actual server code

I believe you should be able to configure it to be available at something like http://subdomain.proxy/

Also, you do not need to request the index.md file. I suggest you first test it and configure it with a basic configuration, see that it works, and then try to add the proxy.

@bodsch
Copy link
Author

bodsch commented Mar 16, 2017

sorry, in my current use case is this possible. :(
i look around in your code. i hope i find a resolution for my problem, than comes a PR ;)

@DannyBen
Copy link
Owner

I am closing this. If there is a reason to keep it open, let me know.

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

2 participants