-2

Possible Duplicate:
How to use DNS to redirect domain to specific port on my web server

I have a domain xyz.com and a web application running at http://AAA.BBB.CCC.DDD:8080/pcc.

When the user enters the URL xyz.com and www.xyz.com, I want that the page on http://AAA.BBB.CCC.DDD:8080/pcc is displayed in the browser.

What DNS records should I add?

Update:

1) I changed the port to 80.

2) Thanks all for the help!

Now I can reach the application via URLs

www.xyz.com/pcc xyz.com/pcc ,

i. e. xyz.com and www.xyz.com point to AAA.BBB.CCC.DDD.

One last thing remains: I want xyz.com to point to the pcc directory (as well as www.xyz.com).

How can I do that?

4 Answers4

3

The fact that you have your web site running off of a non-standard port web server breaks the ability of a web browser from reaching it without specifying it port - so "http://xyz.com:8080" work, but "http://xyz.com" will not.

This is not a DNS issue, but an application server setup issue. You need something to respond on port 80 for xyz.com if you want the web browsers to be able to contact it without specifying the non-standard 8080 port.

user48838
  • 7,419
1

You need to create an A record for xyz.com that points to AAA.BBB.CCC.DDD. You need to create a CNAME record for www.xyz.com that points to xyz.com.

By default HTTP uses port 80. If you are using apache then you should be able to use mod_proxy to shift the port.

user9517
  • 117,122
0

I use zoneedit.com as my DNS provider. It offers a web forward feature that does this for me. But it does so by answering on port 80 and forwarding to the correct page for me. So user48838 is correct in why this won't work, but there may be an alternative.

uSlackr
  • 6,452
0

Setup a web browser than can do Rewrites, like Apache, thought hat may be overkill, then add a record:

RewriteRule .* http://aaa.bbb.ccc.ddd:8080/pcc [R=301,L]

To an .htaccess file in your docroot, or in the Apache main httpd.conf file.

laebshade
  • 846
  • 5
  • 11