How to redirect multiple domain to same ip but different port for different services [duplicate]How to use DNS/Hostnames or Other ways to resolve to a specific IP:PortHow do I redirect subdomains to a different port on the same server?Apache VirtualHosts on port 8080, but what about the /etc/hosts?How can I make nginx use port 8080 instead of 80?what is the correct config for ubuntu apache2 virtualhost on port different from 80Can I use Varnish to front 2 different services from different servers on 1 domain?Need to know how to route non 80 port to a sub domainHow to redirect traffic from port 80 to port 8080How to route requests between Nginx servers on the same IP address based on domain name?Serving different secure sites based on port on same domain using nginxSSL for multiple ports with single domain - ubuntu with nginx

Future enhancements for the finite element method

How to properly maintain eye contact with people that have distinct facial features?

shutdown at specific date

How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?

Why does the 6502 have the BIT instruction?

Apparent Ring of Craters on the Moon

Looking after a wayward brother in mother's will

Employer demanding to see degree after poor code review

How to capture more stars?

What does uniform continuity mean exactly?

How to prevent bad sectors?

Is this story about US tax office reasonable?

How does an ARM MCU run faster than the external crystal?

Why did this prime-sequence puzzle not work?

How could Catholicism have incorporated witchcraft into its dogma?

Windows 10 Programs start without visual Interface

Ticket sales for Queen at the Live Aid

What does the behaviour of water on the skin of an aircraft in flight tell us?

Is there an explanation for Austria's Freedom Party virtually retaining its vote share despite recent scandal?

Uses of T extends U?

What does "Marchentalender" on the front of a postcard mean?

Question about exercise 11.5 in TeXbook

Were pen cap holes designed to prevent death by suffocation if swallowed?

What's the connection between "kicking a pigeon" and "how a bill becomes a law"?



How to redirect multiple domain to same ip but different port for different services [duplicate]


How to use DNS/Hostnames or Other ways to resolve to a specific IP:PortHow do I redirect subdomains to a different port on the same server?Apache VirtualHosts on port 8080, but what about the /etc/hosts?How can I make nginx use port 8080 instead of 80?what is the correct config for ubuntu apache2 virtualhost on port different from 80Can I use Varnish to front 2 different services from different servers on 1 domain?Need to know how to route non 80 port to a sub domainHow to redirect traffic from port 80 to port 8080How to route requests between Nginx servers on the same IP address based on domain name?Serving different secure sites based on port on same domain using nginxSSL for multiple ports with single domain - ubuntu with nginx






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0
















This question already has an answer here:



  • How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port

    8 answers



In my VM, i'm running both apache2 and nginx, but apache2 is pointed to Port 8080 and nginx is Port 80. Already i pointed my domain to ip in nginx and its running properly. The same thing i need to do for apache2. But how will i give Port number while mapping the ip to Domain. In the cName record, i'm not able to specify the port. Is there any alternative way to resolve this issues.










share|improve this question













marked as duplicate by Gerald Schneider, Thomas, chicks, womble May 15 at 22:59


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • 2





    You can't. DNS doesn't handle ports.

    – Gerald Schneider
    May 15 at 7:39

















0
















This question already has an answer here:



  • How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port

    8 answers



In my VM, i'm running both apache2 and nginx, but apache2 is pointed to Port 8080 and nginx is Port 80. Already i pointed my domain to ip in nginx and its running properly. The same thing i need to do for apache2. But how will i give Port number while mapping the ip to Domain. In the cName record, i'm not able to specify the port. Is there any alternative way to resolve this issues.










share|improve this question













marked as duplicate by Gerald Schneider, Thomas, chicks, womble May 15 at 22:59


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • 2





    You can't. DNS doesn't handle ports.

    – Gerald Schneider
    May 15 at 7:39













0












0








0









This question already has an answer here:



  • How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port

    8 answers



In my VM, i'm running both apache2 and nginx, but apache2 is pointed to Port 8080 and nginx is Port 80. Already i pointed my domain to ip in nginx and its running properly. The same thing i need to do for apache2. But how will i give Port number while mapping the ip to Domain. In the cName record, i'm not able to specify the port. Is there any alternative way to resolve this issues.










share|improve this question















This question already has an answer here:



  • How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port

    8 answers



In my VM, i'm running both apache2 and nginx, but apache2 is pointed to Port 8080 and nginx is Port 80. Already i pointed my domain to ip in nginx and its running properly. The same thing i need to do for apache2. But how will i give Port number while mapping the ip to Domain. In the cName record, i'm not able to specify the port. Is there any alternative way to resolve this issues.





This question already has an answer here:



  • How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port

    8 answers







apache-2.2 nginx azure subdomain mapping






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 15 at 7:37









Sakthi PanneerselvamSakthi Panneerselvam

1105




1105




marked as duplicate by Gerald Schneider, Thomas, chicks, womble May 15 at 22:59


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Gerald Schneider, Thomas, chicks, womble May 15 at 22:59


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 2





    You can't. DNS doesn't handle ports.

    – Gerald Schneider
    May 15 at 7:39












  • 2





    You can't. DNS doesn't handle ports.

    – Gerald Schneider
    May 15 at 7:39







2




2





You can't. DNS doesn't handle ports.

– Gerald Schneider
May 15 at 7:39





You can't. DNS doesn't handle ports.

– Gerald Schneider
May 15 at 7:39










1 Answer
1






active

oldest

votes


















1














DNS CNAME record resolves only to IP address, so you cannot specify port, you have to explicitly add port to your URL in a request like this: http://example.com:8080.



Another approach is to use load balancer like for example Haproxy, Traefic, or even Nginx with its reverse proxy capabilities (check this: http://nginx.org/en/docs/http/load_balancing.html). Then you will be able to use only one port (well, you can use multiple ports as well, but typically port 80 and 443) on its frontend traffic and "routing" it to your backends by some criteria (domain name, path, HTTP header info, cookies, source or destination IP address, etc.).






share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    DNS CNAME record resolves only to IP address, so you cannot specify port, you have to explicitly add port to your URL in a request like this: http://example.com:8080.



    Another approach is to use load balancer like for example Haproxy, Traefic, or even Nginx with its reverse proxy capabilities (check this: http://nginx.org/en/docs/http/load_balancing.html). Then you will be able to use only one port (well, you can use multiple ports as well, but typically port 80 and 443) on its frontend traffic and "routing" it to your backends by some criteria (domain name, path, HTTP header info, cookies, source or destination IP address, etc.).






    share|improve this answer



























      1














      DNS CNAME record resolves only to IP address, so you cannot specify port, you have to explicitly add port to your URL in a request like this: http://example.com:8080.



      Another approach is to use load balancer like for example Haproxy, Traefic, or even Nginx with its reverse proxy capabilities (check this: http://nginx.org/en/docs/http/load_balancing.html). Then you will be able to use only one port (well, you can use multiple ports as well, but typically port 80 and 443) on its frontend traffic and "routing" it to your backends by some criteria (domain name, path, HTTP header info, cookies, source or destination IP address, etc.).






      share|improve this answer

























        1












        1








        1







        DNS CNAME record resolves only to IP address, so you cannot specify port, you have to explicitly add port to your URL in a request like this: http://example.com:8080.



        Another approach is to use load balancer like for example Haproxy, Traefic, or even Nginx with its reverse proxy capabilities (check this: http://nginx.org/en/docs/http/load_balancing.html). Then you will be able to use only one port (well, you can use multiple ports as well, but typically port 80 and 443) on its frontend traffic and "routing" it to your backends by some criteria (domain name, path, HTTP header info, cookies, source or destination IP address, etc.).






        share|improve this answer













        DNS CNAME record resolves only to IP address, so you cannot specify port, you have to explicitly add port to your URL in a request like this: http://example.com:8080.



        Another approach is to use load balancer like for example Haproxy, Traefic, or even Nginx with its reverse proxy capabilities (check this: http://nginx.org/en/docs/http/load_balancing.html). Then you will be able to use only one port (well, you can use multiple ports as well, but typically port 80 and 443) on its frontend traffic and "routing" it to your backends by some criteria (domain name, path, HTTP header info, cookies, source or destination IP address, etc.).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 15 at 11:44









        patokpatok

        5331314




        5331314













            Popular posts from this blog

            Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

            Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020