OraOpenSource / node4ords

Simple node app to act as web listener for Oracle APEX pages
http://www.oraopensource.com/node4ords/
MIT License
23 stars 5 forks source link

'Cannot GET /' when excluding full path #19

Closed tschf closed 8 years ago

tschf commented 9 years ago

The IP address of my server is 192.168.1.15. If I attempt to go to: http://192.168.1.15/ (excluding /ords or /apex from the URL), the page simply outputs: Cannot GET /

screenshot from 2015-09-23 19 16 10

GasparYYC commented 8 years ago

Could someone please provide an update or ETA to dealing with this bug? Seems like @tschf added for 0.1.0 milestone on Sep 23 2015. This bug is preventing the tomcat from doing a redirect when the user just types: app.domain.com

thanks

tschf commented 8 years ago

@GasparYYC this seems to be due to missing the route (See: http://stackoverflow.com/a/21318071/3476713)

That is line 41 should be app.get('/', function(req, res, next){ instead of app.get(function(req, res, next){

I've tested this a while back and it seems to resolve the issue, just lost track to add this change back to the project. I'll push it in a sec.