Wednesday, 15 March 2017

How to mod rewrite port on apache server with htaccess?

I have shared hosting account with cloudlinux and shell access. I've installed nodejs and I can run my app on port that isn't 80 since that is taken by apache.

My account doesn't have access to httpd.conf file so I can't configure port forwarding there, and I didn't find any definitive answer to whether I can rewrite request to another port in the background such that when user visits test.domain.com in the background all requests are forwarded to my app that listens on port 80.

So, can I make .htaccess rewrite port from 80 to 8080. Not redirect from test.domain.com to test.domain.com:8080 but genuenly handle all of that in the background.



via Reygoch

No comments:

Post a Comment