WebFaction
Community site: login faq

What I am trying to do is to use two apps (App_A and App_B) on two ports (A&B) on server, say web200 to be accessed from www.abcd.com (pointing to web200:A) and www.dcba.com (pointing to web200:B). Does hosting companies allow port definition within the A-record? I am using webhostingpad and I am not sure, if and how can I provide te port number on A-record? Otherwise, how would webfaction redirect the two requests to different ports?

Thanks for your help.

Anirudh

asked 02 Dec '13, 22:31

anirudhnh
11
accept rate: 0%


Hello,

The short answer is no, the DNS system has no notion of "ports".

The distinction between requests for different domain names on one port (HTTP in this case) is based on the destination HTTP host, contained in the HTTP request.

What you need here is to map port 80 (the official HTTP port) on domain name abcd.com to your custom application on port A, and do the same for www.dcba.com and port B. This is exactly what our setup does - we are using Nginx as the front end web server, which accepts requests on port 80, checks its configuration file on where to redirect (proxy) the requests and sends them to your custom application which listens on port A. Then it proxies the responses back to the visitor, making all these redirects transparent to him/her.

So you do not need to specify ports in your A records, just point the domain names to our servers, make sure your custom applications are running properly and create websites that will bind the domain names and their applications via your Control Panel, the Domains/websites -> Websites page.

Sincerely,

Valentin I.
WebFaction Support
--
WebFaction - Smarter web hosting
http://webfaction.com
http://twitter.com/webfaction - http://facebook.com/webfaction

permanent link

answered 03 Dec '13, 09:57

valentini
2614
accept rate: 28%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×2
×1
×1

question asked: 02 Dec '13, 22:31

question was seen: 1,187 times

last updated: 03 Dec '13, 09:57

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM