简体   繁体   English

如何从Web网址屏蔽ipaddress /主机名和端口号?

[英]How to mask ipaddress/hostname and port number from a web url?

I have a nodejs server running on my ec2 instance. 我有一个在我的ec2实例上运行的nodejs服务器。 I currently use the public hostname along with the port number(3000) to access my webpage? 我当前使用公共主机名和端口号(3000)来访问我的网页吗? How do I mask this url with a more simple domain like example.com 如何使用更简单的域名(例如example.com)屏蔽此网址

My current url is something like this 我当前的网址是这样的

http://ec2-host-name:3000/ http:// ec2-host-name:3000 /

  1. Buy a domain name 购买域名
  2. Create a DNS record for your domain name that points to the EC2 server's IP address 为您的域名创建一个指向EC2服务器IP地址的DNS记录
  3. Start hosting your app on port 80, the default HTTP port, so that you don't have to specify the port in the URL anymore 开始将应用程序托管在默认HTTP端口80端口上,这样您就不必再在URL中指定端口了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 节点获取URL,如何剥离主机名端口 - Node Fetch url, how to strip off hostname port 从网址中删除端口号 - Remove port number from URL 如何从URL中删除端口号,并使用node app添加slug? - How to remove port number from url, and add slug with node app? 如何从节点js应用程序的URL中删除端口号? - How to remove port number from appear in the url for node js application? nodejs express:带有来自 req 对象的端口的主机名 - nodejs express: hostname with port from the req object 如何在连接到API服务器时从AWS中的url中删除端口号 - how to remove port number from url in aws while connecting to the API server 如何将文件夹中的页面设置为 URL localhost:端口号? - How to set a page within a folder to the URL localhost: port-number? 根据URL重定向到端口号 - Redirect to a port number depending on the URL 将流量重定向到具有端口号的域,而不在URL中显示端口号 - Redirect traffic to a domain with a port number without showing the port number in the URL 我们如何在 Laravel 控制器中使用端口号调用 url()。 节点服务器在 8001 和 Laravel 端口是 8000 的不同端口上运行? - How can we call url() with port number in Laravel controller. Node server is running on different port that 8001 and Laravel port is 8000?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM