By changing my DNS records, how can I set "test.mydomain.com" to XXX.XXX.XXX.XXX:8080?

Firstly, this is a programming issue, because I am trying to set up a test / QA server running next to the production server.

Secondly, yes, I have to publish this on Serverfault, but I tried to log in with three different OpenID providers, and every time I get an error, this provider is not supported in the beta version (although the icon is right there ) You must be logged in to post a question.

Wow, good.

I currently have one A record , where @host points to my server IP address, say, 11/11/11. Then I have a CNAME record with a www site pointing to @ from my A record .

The problem is that I have another web server running on 11/11/11/11:8080. I would like to make another CNAME so that the test node points to something like @: 8080

Summarizing:

www.mydomain.com should go to 11/11/11

test.mydomain.com should go to 11/11/11/11:8080

Is it possible? If so, how?

+5
source share
9 answers

There is no port number in the DNS A record (address). Therefore, not , which is impossible.

, IP- (, 111.11.11.12) test.mydomain.com. IP-, - .

P.S. DNS SRV, , , .

+6

DNS IP-. , DNS IP-, Apache, mod_proxy 8080. . .

http://www.jboss.org/community/wiki/UsingModproxyWithJBoss

+3

, DNS A ip-, .

- ( , 8080). , -, .

EDIT: tomcat, Host, : http://tomcat.apache.org/tomcat-4.1-doc/config/host.html

+1

.

DNS. . ip → .

+1

, . DNS-, IP-, . , , .

+1

Dyndns.org webhop . 5 .

0
0

.

IP- . , IP- . DNS, , IP-.

, ipv6. ipv6, /64, .:)

0

You can use the Apache virtual host. I don't know the exact syntax, but I know that this is how the rails work. This is something like:

 <virtualhost *:8080>
 servername subdomain.domain.com
 serveralias subdomain.domain.com
 DocumentRoot /path/to/public
 </virtualhost>

restart apache.

-1
source

All Articles