请问怎样把http://192.168.1.1/test的形式改成test.com的形式

constantlylearn 2003-10-17 10:41:00
请问怎样把http://192.168.1.1/test的形式改成test.com的形式
...全文
190 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
etre 2003-10-20
  • 打赏
  • 举报
回复
在C:\WINNT\system32\drivers\etc目录下的hosts文件中如下

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

217.116.231.7 aimtoday.aol.com
加入
192.168.1.1 www.test.com
foolfish 2003-10-19
  • 打赏
  • 举报
回复
怎么改?贴个例子?
lmh7607 2003-10-19
  • 打赏
  • 举报
回复
web.xml
gboy2003 2003-10-19
  • 打赏
  • 举报
回复
up
whodsow 2003-10-19
  • 打赏
  • 举报
回复
这个啊,在web.xml中更改地址映射就行了。
constantlylearn 2003-10-19
  • 打赏
  • 举报
回复
up

81,090

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧