J
J
Jivchik1232021-10-29 18:01:36
Apache HTTP Server
Jivchik123, 2021-10-29 18:01:36

How to run node.js application from apache without specifying port (:3000) with settings in htaccess?

Good afternoon.
There is a virtual hosting. It has a node.js application installed + php backing.
The application is launched on port 3000.

For example, on request website.ru : 3000 - everything works fine.
On the server there is api in php at: website.ru/api

How can I change the address and remove the port when accessing the server by domain name, without specifying the port?
I read about proxying, but unfortunately there is no access to the settings on the virtual machine, I can only use .htaccess - but ProxyPass does not work in it.
Of course, no one will install Nginx on the server for my sake.

Is there any solution here?

Those. it is necessary, when accessing by domain name or by url, to give a node application without a port. Well, keep the api working on php.

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2021-10-29
@Viji

Or put node.js app on port 80 right away - if admins can give access? This is the default http port, if without https it will work fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question