I am trying to redirect from a subdomain, to a certian port, like sub1.domain.com
redirects to domain.com:1337
. But directly, not through a webpage. I'm making a java program to connect to the subdomain and the socket connect like this Socket --> sub1.domain.com --> domain.com:1337
with no page inbetween. Just like this post.
Also, If I add this to my httpd config
<VirtualHost *:80>
Servername sub1.domain.com
redirect / http://domain.com:1337/
</VirtualHost>
It connects to the website but gets the html of a redirect page, not the serverside connection.