I am trying to access my static image file inside public directory via http://&lt;IP Address&gt;:3000/image.jpg and it available only when I am logged in to my server. As soon as I log out I get 

GET 404 Not found in Network Tab and instead of page:

 Error: Not Found
   at module.exports (&lt;path&gt;/app.js:48:15)
   at Layer.handle [as handle_request] (&lt;path&gt;/node_modules/express/lib/router/layer.js:82:5)
   at trim_prefix (&lt;path&gt;/node_modules/express/lib/router/index.js:271:13)
   at &lt;path&gt;/node_modules/express/lib/router/index.js:238:9
   at Function.proto.process_params (&lt;path&gt;/node_modules/express/lib/router/index.js:313:12)
   at &lt;path&gt;/node_modules/express/lib/router/index.js:229:12
   at Function.match_layer (&lt;path&gt;/node_modules/express/lib/router/index.js:296:3)
   at next (&lt;path&gt;/node_modules/express/lib/router/index.js:190:10)
   at &lt;path&gt;/node_modules/express/lib/router/index.js:192:16
   at Function.match_layer (&lt;path&gt;/node_modules/express/lib/router/index.js:296:3)


I have app.use(express.static(__dirname + '/public')); in my app.js file.

All my routes are working fine and I am getting JSON response when requesting any route when I am logged out and I only get problem with files inside public directory.

I am running my script on server with forever start -c nodemon bin/www

I tried moving app.use(express.static(__dirname + '/public')); to the top but same problem.

Does anyone have an idea why public folder is only accessible when I'm logged in to my server?


Question: PHP EDI X12 Parsing
Answer: It's old, but I found it using google and maybe my answer will help someone...


I found in a comment on pear.php.net
http://code.google.com/p/izi-sandbox/source/browse/#svn%2Ftrunk%2Fphp%2Fphp_edi
I found searching for EDIFACT on github
https://github.com/markfoster/php_edifact