Current apache installation as reverse proxy

Gmpxdev

New Member
Hi all!

I have a vps with whm/cpanel and I'm planning to deploy a nuxt js app (a node js ssr server), I would like to know if it's possible (and how-to) to use the current apache installation as reverse proxy to by-pass to port 3000 for example. Is it possible? or Do you know another aproach to do it?

Thanks in advance.
 
I have a vps with whm/cpanel and I'm planning to deploy a nuxt js app (a node js ssr server), I would like to know if it's possible (and how-to) to use the current apache installation as reverse proxy to by-pass to port 3000 for example. Is it possible? or Do you know another aproach to do it?

That' simple enough to do.
You'll have to create apache conf include files as described here: https://documentation.cpanel.net/display/EA4/Modify+Apache+Virtual+Hosts+with+Include+Files

Then you put in that file your proxy directive
Code:
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/


Merry Christmas
 
Hi bp3000!

I hope you had a great Christmas day!

That's was easy! thanks for the advice and the link!

Have a happy new year!
 
Top