How to adjust redirection of subdomains to the particular ports?

July 24, 2014 2.1k views


can you, please, explain me how to adjust redirection of subdomains to the particular ports?

Now it is made like that and it doesn’t work :(

4 Answers

привет :)

would this help?

read Running different sites on different ports section.

it's all about apache, not DNS settings.

if u have any other questions feel free to find me @

DNS doesn't work like that. Clients can specify the port they want to connect to, or you can configure your web server to proxy port 80 internally.

As far as I know, it is purpose of SVR record.

I need it without nginx and apache, so that dns redirects it to the needed ports.

e. g.
DNS SRV-records Support in HTTP-browsers
How to add Google Chat SRV records on Digital Ocean

SRV records are not typically used by web browsers. In fact few support SRV records.

Currently, SRV records are mainly used with VoIP SIP services.

Check out
for more details on SRV.

If you are trying to redirect HTTP traffic to a unique port, you will have to configure this on your web server. You will need to place directives to redirect from the standard port 80 to whatever port you select. There's no way to have something like Google or Firefox directly access another port for HTTP.

Have another answer? Share your knowledge.