简体   繁体   中英

Point DNS to IP address with a port

I can't point my DNS to a IP address that has a port other than port 80 (ie. 1.2.3.4:84) with "A Record". I can use "URL Redirect Record" though but that displays the IP address in the URL bar instead of the domain name I chose. How do I configure nginx to arrive at an IP address but change the URL to display the domain name I want instead of an IP address.

I'm using nginx to host my website so I could simply add multiple servers/server_names to port 80 instead of using multiple ports.

http://nginx.org/en/docs/http/ngx_http_core_module.html#server_name

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM