简体   繁体   English

从网址中删除端口号

[英]Remove port number from URL

I am very new to nodejs . 我对nodejs非常陌生。 I am using (Godaddy)WHM (apache 2.2.3) . 我正在使用(Godaddy)WHM(Apache 2.2.3)。

I am referring following link https://stackoverflow.com/a/16345829/6299548 我指的是以下链接https://stackoverflow.com/a/16345829/6299548

but I am not finding the httpd.conf file in my WHM. 但我在WHM中找不到httpd.conf文件。

I have also tried for following from my WHM. 我也曾尝试从WHM中追踪。 (Home >> Service Configuration >> Apache Configuration >> Global Configuration) (主页>>服务配置>> Apache配置>>全局配置)

How to take backup of my old httpd.conf file, Edit the file and add new content given by Anna. 如何备份我的旧httpd.conf文件,编辑文件并添加Anna给出的新内容。

Can you give me the steps for 1) Go to httpd.conf 2) Take backup of old httpd.conf 3) Add new content given by Anna 您能给我以下步骤吗:1)转到httpd.conf 2)备份旧的httpd.conf 3)添加Anna给出的新内容

You can't remove port number from url unless it is default port such as 80 or 443. 除非它是默认端口,例如80或443,否则您无法从url中删除端口号。

You can mask it if you reverse proxy, but still your frontend port would have to be 80 or 443. 如果您反向代理,则可以屏蔽它,但是前端端口仍必须为80或443。

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

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