And*_*say 21 ip host shared-hosting forward
我想编辑我的主机文件以将网站转发到另一个IP,但该IP位于共享主机上,因此IP不会将我带到我想要的域.有没有解决的办法?
即网站:http://somerandomservice.com/
Ping网站并转至:67.225.235.59
但他们是不同的网站.
谢谢!
更新:尝试了nmap,但无法找到正确的端口.
小智 38
通过其IP号访问您的网站的一种可能方式是包括代字号〜然后您的用户名:
例:
http://serverIPaddress/~cpanelusername
Run Code Online (Sandbox Code Playgroud)
小智 12
根据HTTP/1.1标准,共享IP托管站点可以通过GET请求访问,其中IP为URL和主机的标头.
这里有两个例子(wget和curl):
$ wget --header 'Host:somerandomservice.com' http://67.225.235.59
$ curl --header 'Host:somerandomservice.com' http://67.225.235.59
资源:
https://en.wikipedia.org/wiki/Shared_web_hosting_service
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23
小智 9
您可以使用您的 IP 地址和带 ~ 符号的 cPanel 用户名访问您的网站。例如: http://serverip/~cpuusername就像https://xxx.xxx.xx.xx/~mohidul
包含端口号和IP地址.
例如:
http://19.18.20.101:5566
Run Code Online (Sandbox Code Playgroud)
其中5566是端口号.