question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 when serving .js subdirectory

See original GitHub issue

Hi, I’m trying to run wekan in a subpath. I have set a reverse proxy rule in Apache2 and edited wekan export accordingly:

export MONGO_URL='mongodb://127.0.0.1:27017/wekan'
export ROOT_URL='http://example.com/wekan'
export PORT=6000

Then when I run it, checking the requests from the browser I see a successfully GET for: http://example.com/wekan/f0426bcbeb2093dda4b534ff1a77049c6f346db8.css?meteor_css_resource=true but a 404 for: http://example.com/wekan/8e718784e5e106f4d9f24ce29592400fd1f93740.js?meteor_js_resource=true If I remove ?meteor_js_resource=true editing the request from the dev tools in Firefox, I have a 200 response, however it doesn’t work. The files are those located here: bundle/programs/web.browser. Wekan works when started from a path like wekan.example.com (of course using a different apache configuration).

Hints on possible solutions?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
aravindhsampathcommented, Aug 1, 2018

Yeah. I’m losing patience with this setting. I’ll try tomorrow setting wekan up as a separate subdomain, and hopefully it works then. Appreciate your help looking into it!

0reactions
xet7commented, Aug 9, 2018

I presume subdomain did work for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nginx 404 issue when serving static files of a sub-directory
mydomain/sub/css/style.css is not served. Here is the Nginx configuration file : server { listen 80; server_name www.example.com example.com; ...
Read more >
serveStatic on '/' responds with net::ERR_ABORTED 404 ...
I'm facing an issue with my static assets placed under a subdirectory and not able to load them from my web app. I...
Read more >
Site with a subdirectory returns 404 - 🙋Get Help
Hi,. I've set up my settings as you have here but having a few issues. Firstly, all fetch requests when I'm in the...
Read more >
Site Home Page Is 404 after nextjs deploy from sub directory
js and is housed in a site subdirectory in the repo. I've tried several different setting in both the netlify.toml file and in...
Read more >
Nginx Subdirectory returning 404
My main website www.khairulslt.me works fine and is serving the html/css/js files in /var/www/khairulslt.me perfectly fine.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found