我在WIN2K下安装Apache,如下配置:
打开Apache2\conf\httpd.conf文件,查找到下面的内容:# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
ServerName 127.0.0.1:8080 
如果你需要改服务器/IP,则修改上面最下面的代码————————————————————————————— 再查找下面内容:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/apache2/htdocs" 
如果你想改变放置运行JSP文件的目录,请将上面蓝色的内容修改成: DocumentRoot "盘符:/路径",注意,要使用"/"而不是"\"。
打开MS-DOS方式,去到D:\apache2\bin\目录下,输入下面命令将Apache安装成服务(安装成功后就可以在任务栏的Monitor里看到):
apache -k install 回车双击任务栏右下角的Apache Monitor,你会在左边看到一个"Apache2"(如下图),再按右边的Start按钮,启动Apache2!
打开IE,在地址栏上输入:http://127.0.0.1:8080/,正常的话会有画面出来。
可是我怎么搞都弄不出来,不能正常访问。各位能否给点意见啊?
补充:我这里使用了局域网共享上网,服务器地址是20.0.0.1,我的地址是20.0.0.12,
DNS是20.0.0.1,是不是这样很难配置的,请高手赐教!