Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question