{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/4266","repository_url":"https://api.github.com/repos/kubernetes/ingress-nginx","labels_url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/4266/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/4266/comments","events_url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/4266/events","html_url":"https://github.com/kubernetes/ingress-nginx/issues/4266","id":463389692,"node_id":"MDU6SXNzdWU0NjMzODk2OTI=","number":4266,"title":"Angular URL Rewrite","user":{"login":"themac13","id":9740788,"node_id":"MDQ6VXNlcjk3NDA3ODg=","avatar_url":"https://avatars1.githubusercontent.com/u/9740788?v=4","gravatar_id":"","url":"https://api.github.com/users/themac13","html_url":"https://github.com/themac13","followers_url":"https://api.github.com/users/themac13/followers","following_url":"https://api.github.com/users/themac13/following{/other_user}","gists_url":"https://api.github.com/users/themac13/gists{/gist_id}","starred_url":"https://api.github.com/users/themac13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themac13/subscriptions","organizations_url":"https://api.github.com/users/themac13/orgs","repos_url":"https://api.github.com/users/themac13/repos","events_url":"https://api.github.com/users/themac13/events{/privacy}","received_events_url":"https://api.github.com/users/themac13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-07-02T19:07:43Z","updated_at":"2019-07-05T13:50:12Z","closed_at":null,"author_association":"NONE","body":"<!-- Thanks for filing an issue! Before hitting the button, please answer these questions.-->\r\n\r\n**Is this a request for help?** (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):\r\n\r\nYes\r\n\r\n**What keywords did you search in NGINX Ingress controller issues before filing this one?** (If you have found any duplicates, you should instead reply there.):\r\n\r\nURL rewrite?\r\n\r\n---\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?** (choose one):\r\n\r\n<!--\r\nIf this is a BUG REPORT, please:\r\n  - Fill in as much of the template below as you can.  If you leave out\r\n    information, we can't help you as well.\r\n\r\nIf this is a FEATURE REQUEST, please:\r\n  - Describe *in detail* the feature/behavior/change you'd like to see.\r\n\r\nIn both cases, be ready for followup questions, and please respond in a timely\r\nmanner.  If we can't reproduce a bug or think a feature already exists, we\r\nmight close your issue.  If we're wrong, PLEASE feel free to reopen it and\r\nexplain why.\r\n-->\r\n\r\n**NGINX Ingress controller version**: 0.24.1\r\n\r\n\r\n**Kubernetes version** (use `kubectl version`): v1.13.5\r\n\r\n\r\n**Environment**: AKS\r\n\r\n- **Cloud provider or hardware configuration**: AKS\r\n- **OS** (e.g. from /etc/os-release):\r\n- **Kernel** (e.g. `uname -a`):\r\n- **Install tools**:\r\n- **Others**:\r\n\r\n\r\n**What happened**:\r\n\r\nAngular application:\r\n\r\n`apiVersion: extensions/v1beta1\r\nkind: Ingress\r\nmetadata:\r\n  name: ingress\r\n  namespace: ingress\r\n  annotations:\r\n    kubernetes.io/ingress.class: nginx\r\n    nginx.ingress.kubernetes.io/rewrite-target: /$2\r\n    nginx.ingress.kubernetes.io/enable-rewrite-log: \"true\"\r\nspec:\r\n  tls:\r\n  - hosts:\r\n    - dev.dev.com\r\n    secretName: cert\r\n  rules:\r\n  - host: dev.dev.com\r\n    http:\r\n      paths:\r\n      - path: /merchant(/|$)(.*)\r\n        backend:\r\n          serviceName: service\r\n          servicePort: 80`\r\n\r\nCalling the url dev.dev.com/merchant shows a blank page. In console, it says:\r\n\r\nGET https://dev.dev.com/runtime.js net::ERR_ABORTED 404\r\n\r\n**What you expected to happen**:\r\nIt should be loading resources from \r\n\r\nhtts://dev.dev.com/merchant/runtime.js\r\n\r\nTo make it work. (Can confirm if accessing that URL directly it will load the JS and other resources that's 404-ing)\r\n\r\nAny resources from the deployment should stay in the /merchant/* rather than load at /\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\n\r\n\r\n**Anything else we need to know**:\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/comments/508765173","html_url":"https://github.com/kubernetes/ingress-nginx/issues/4266#issuecomment-508765173","issue_url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/4266","id":508765173,"node_id":"MDEyOklzc3VlQ29tbWVudDUwODc2NTE3Mw==","user":{"login":"maddylliieeee","id":11063851,"node_id":"MDQ6VXNlcjExMDYzODUx","avatar_url":"https://avatars2.githubusercontent.com/u/11063851?v=4","gravatar_id":"","url":"https://api.github.com/users/maddylliieeee","html_url":"https://github.com/maddylliieeee","followers_url":"https://api.github.com/users/maddylliieeee/followers","following_url":"https://api.github.com/users/maddylliieeee/following{/other_user}","gists_url":"https://api.github.com/users/maddylliieeee/gists{/gist_id}","starred_url":"https://api.github.com/users/maddylliieeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddylliieeee/subscriptions","organizations_url":"https://api.github.com/users/maddylliieeee/orgs","repos_url":"https://api.github.com/users/maddylliieeee/repos","events_url":"https://api.github.com/users/maddylliieeee/events{/privacy}","received_events_url":"https://api.github.com/users/maddylliieeee/received_events","type":"User","site_admin":false},"created_at":"2019-07-05T13:50:12Z","updated_at":"2019-07-05T13:50:12Z","author_association":"NONE","body":"I am having the same issue and I don't see how this could be an issue of the application."}}
{"actor":{"display_login":"maddylliieeee"}}