Title: ng serve behind HTTPS reverse proxy is failing to call https://localhost:4200 · Issue #2123 · angular/angular-cli · GitHub
Open Graph Title: ng serve behind HTTPS reverse proxy is failing to call https://localhost:4200 · Issue #2123 · angular/angular-cli
X Title: ng serve behind HTTPS reverse proxy is failing to call https://localhost:4200 · Issue #2123 · angular/angular-cli
Description: Running ng serve behind an HTTPS reverse proxy is making requests on https://localhost:4200 when it should make them on http://localhost:4200 OS? Ubuntu 16.04 Versions? $ ng --version angular-cli: 1.0.0-beta.11-webpack.9-4 node: 6.5.0 os...
Open Graph Description: Running ng serve behind an HTTPS reverse proxy is making requests on https://localhost:4200 when it should make them on http://localhost:4200 OS? Ubuntu 16.04 Versions? $ ng --version angular-cli: ...
X Description: Running ng serve behind an HTTPS reverse proxy is making requests on https://localhost:4200 when it should make them on http://localhost:4200 OS? Ubuntu 16.04 Versions? $ ng --version angular-cli: ...
Opengraph URL: https://github.com/angular/angular-cli/issues/2123
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng serve behind HTTPS reverse proxy is failing to call https://localhost:4200","articleBody":"Running `ng serve` behind an HTTPS reverse proxy is making requests on https://localhost:4200 when it should make them on http://localhost:4200\n### OS?\n\nUbuntu 16.04\n### Versions?\n\n```\n$ ng --version\nangular-cli: 1.0.0-beta.11-webpack.9-4\nnode: 6.5.0\nos: linux x64\n```\n### Repro steps\n1. `ng new foo`\n2. `cd foo`\n3. `ng serve`\n4. Then I load the page on https://mywebserver.mydomain.org which is the page served by a reverse proxy\n ==\u003e observe the network tab in Chrome developer tools, it keeps making requests on\n\n```\nhttps://localhost:4200/sockjs-node/info?t=1473926195156\n```\n\nwhich fail when the same URL starting with http:// works\n\n---\n\nI have an HTTPS reverse proxy in front (to be able to route API calls - it needs to be HTTPS because I use the geolocation API). Here is an excerpt of the NGINX configuration file.\n\n```\n$ cat /etc/nginx/sites-enabled/my-test\nserver {\n listen 443 ssl;\n location / {\n proxy_pass http://localhost:4200;\n }\n ssl_certificate /etc/nginx/ssl/myserver.crt;\n ssl_certificate_key /etc/nginx/ssl/myserver-private.key;\n}\n```\n","author":{"url":"https://github.com/jandsu","@type":"Person","name":"jandsu"},"datePublished":"2016-09-15T08:01:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/2123/angular-cli/issues/2123"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:25fb3926-4b05-e03d-df5c-8aee32cd4e71 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2BA:209C5F:14F380C:1CF75C6:69777839 |
| html-safe-nonce | a26869a1c55502b039170327e9e6db80408d80bfebf5a492beb99a1094a65688 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkJBOjIwOUM1RjoxNEYzODBDOjFDRjc1QzY6Njk3Nzc4MzkiLCJ2aXNpdG9yX2lkIjoiMTE5MTg1MDg0NTEzNDA5MjM0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9790da867dd50e77ef2f9e605bdfcc3c6013d31aa2f230b4e97d50feac6d167c |
| hovercard-subject-tag | issue:177113679 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/2123/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85f2a9d9dc39ab860b4bcab8ce980097f2919fe69c74f7e983a1a024aaf8829a/angular/angular-cli/issues/2123 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85f2a9d9dc39ab860b4bcab8ce980097f2919fe69c74f7e983a1a024aaf8829a/angular/angular-cli/issues/2123 |
| og:image:alt | Running ng serve behind an HTTPS reverse proxy is making requests on https://localhost:4200 when it should make them on http://localhost:4200 OS? Ubuntu 16.04 Versions? $ ng --version angular-cli: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jandsu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9fea6af76c6e24ca5c5728a18d4220d768790d04abe1ba6aafa18526daff96e7 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0bc7a371bc0035e2253b0269926586e60cf8a4ac |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width