NginxProxyManager / NginxProxyManager/nginx-proxy-manager

Custom Location Subpath Redirect Problem

Open
#4,231 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
34.2k
Forks
3.9k
Avg merge
21h 12m
Merged PRs (30d)
20

Description

Hello, My version v2.12.1 then I have nginx installed on my local computer but on my server I can run another angular application on the sub path with nginx proxy manager installed in docker, but when I throw it to the server it says “Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/html”. Strict MIME type checking is enforced for module scripts per HTML spec.” gives this error. ”
costom
main

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the local and server Nginx Proxy Manager configurations for the Angular application mounted under a subpath. Reproduce the deployment and inspect the failing module request, then verify that asset requests return JavaScript rather than the HTML fallback; the issue is resolved when the application loads without the MIME-type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, docker, nginx
Domain
infrastructure, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.