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;
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.
apache-2.2 nginx azure subdomain mapping
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.
add a comment |
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.
apache-2.2 nginx azure subdomain mapping
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
add a comment |
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.
apache-2.2 nginx azure subdomain mapping
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
apache-2.2 nginx azure subdomain mapping
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.).
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.).
add a comment |
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.).
add a comment |
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.).
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.).
answered May 15 at 11:44
patokpatok
5331314
5331314
add a comment |
add a comment |
2
You can't. DNS doesn't handle ports.
– Gerald Schneider
May 15 at 7:39