Redirect url to url:htaccess port

Asked

Viewed 486 times

1

It’s using Node to run my application and I can’t configure htaccess to point to the port I set

RewriteEngine on
RewriteCond %{HTTP_HOST} ^dashponto.softmarketing.com.br$ [OR]
RewriteCond %{HTTP_HOST} ^dashponto.softmarketing.com.br$
RewriteRule ^(.*)$ http://dashponto.softmarketing.com.br:1589/$1 [P]
  • 2

    Are you running the Node with Apache? The best I think would be to do this in Nodejs.

  • yes apache2....

  • Use Proxyreverse on your virtualhost, so vc sets address the port the system will use.

  • npm proxyreverse?

1 answer

0


Problem with socket.io, have q set with port

var socket = io('http://dashponto.softmarketing.com.br:1589');
  • you mean you solved it? So the idea of tinkering with rewriterule doesn’t make sense.

  • rewrite is to eliminate the door...

  • Aham.. I understand everything

Browser other questions tagged

You are not signed in. Login or sign up in order to post.