WebFaction
Community site: login faq

I 've created a node js application with express. But I need to add a trailing slash in order to access the web application. Is there any method to solve that?

e.g. http://www.abc.com/myWebApp <= don't work http://www.abc.com/myWebApp/ <= work

asked 18 Oct '15, 03:31

Franz Wong
111
accept rate: 0%


This is usually solved in various frameworks with the use of a middleware.

For the express framework you could try the express-slash

permanent link

answered 18 Oct '15, 13:56

iliasr ♦♦
2.1k14
accept rate: 35%

Sorry for late reply. I still can't solve the problem. It should be problem of express, it can't distinguish between "/" and "" [1].

Is it possible to install my own nginx and handle the proxy?

[1] https://github.com/strongloop/express/issues/2281

permanent link

answered 26 Oct '15, 06:02

Franz Wong
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67

question asked: 18 Oct '15, 03:31

question was seen: 3,438 times

last updated: 26 Oct '15, 06:02

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM