How to adjust redirection of subdomains to the particular ports?

  • Posted July 24, 2014


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 :(


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.

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

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.

привет :)

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 @