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

HTTP+HTTPS server simultaneously #191

Closed
helllamer opened this issue Jan 24, 2013 · 9 comments
Closed

HTTP+HTTPS server simultaneously #191

helllamer opened this issue Jan 24, 2013 · 9 comments
Milestone

Comments

@helllamer
Copy link

It will be good to listen HTTP and HTTPS ports simultaneously. Current easy-to-use variant, CB + nginx as proxy, crashes on chunked encoding and other HTTP/1.1 features. This is because nginx does not support HTTP/1.1.

By now, other possible crunches are:

  • CB + apache + mod_proxy + mod_ssl - it works! But have much more complexity (compared with nginx).
  • Run two instances of CB in cluster: disadvantages are overhead of session replication, double RAM consumption and overall system design looks ugly.

Also, a patch was proposed some time ago.
Hope, this will be implemented in future.

Original message from google-groups.
Some related patches was in pull-request #44 "Multiple listeners".

@evanmiller
Copy link
Contributor

I'm happy to have multiple listeners. I was unhappy with the previous patch set because I thought it was too complex and not re-usable enough.

Do you need to distinguish HTTP from HTTPS traffic inside the application?

@helllamer
Copy link
Author

I think, it will be enought to:

  • In controller: somehow detect, if SSL is enabled or not. It can be used to enforce SSL or plain HTTP using absolute-URL redirects.

@evanmiller
Copy link
Contributor

I'm thinking something like

Req:http_or_https() -> http | https

@helllamer
Copy link
Author

Yes, this or something like this will be enough for 99% cases.

@kotedo
Copy link
Contributor

kotedo commented Jan 25, 2013

Evan,

maybe something like

protocol() -> http | https

--Kai

On Fri, Jan 25, 2013 at 9:10 AM, Evan Miller notifications@github.comwrote:

I'm thinking something like

Req:http_or_https() -> http | https


Reply to this email directly or view it on GitHubhttps://github.com//issues/191#issuecomment-12704397.

@evanmiller
Copy link
Contributor

@kotedo, good call since SPDY is around the corner.

@evanmiller
Copy link
Contributor

Ok, I submitted a pull request to SimpleBridge, check out

nitrogen/simple_bridge#17

@ghost ghost assigned zkessin Jan 7, 2014
@ilyashuma
Copy link

Btw, i pushed some code to SimpleBridge for support of X-Forwarded-Proto header ( nitrogen/simple_bridge#32 ).

It can be useful when nginx is in charge of SSL, and cb is running behind.

@danikp
Copy link
Contributor

danikp commented Oct 2, 2015

At time of writing this comment, NGINX working fine with CB for all protocols it supports including SPDY. Also, there is ways to distinguish http and https traffic. And for all webservers' related stuff we rely on simple_bridge, so that feature should be implemented there, may be as part of nitrogen/simple_bridge#35

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

6 participants