A
A
Anton Konyushevsky2017-05-04 18:53:18
linux
Anton Konyushevsky, 2017-05-04 18:53:18

How to redirect a domain directory to a separate node.js application?

Hello.
There is an application written by node.js / express, at the moment it was running on a sub-domain of a fairly well-known domain: sub.domain.com. Now the task has come to transfer the application to the directory, i.e. the path should be domain.com/sub. The main problem is that the company is quite large, and I don't have access to the domain; redirects will be set up by their team, and my app is hosted on heroku.
I don't even know which way to go. How to test it? Usually I use nginx to manage domains, is it possible to use this behavior in it? Or what is the best way to do it?
What problems can such a configuration entail? Will certificates for the root domain work fine?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2017-05-04
@akonyushevskiy

The main problem is that the company is quite large, and I don't have access to the domain; redirects will be configured by their team

Why then do YOU ​​have a headache about this?
Why not use it?
In general, you need a reverse proxy . NGINX can do this, but it seems like Node JS itself , too .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question