Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

在win10下使用apache,设置好了httpd.confSRVROOT,
servername设置成localhost或者是localhost:8888之类的,listen参数也跟着一起设置,但是无论如何,都只能在localhost上看到"it works",加任何端口号都没办法访问,
不知道是哪里出了问题


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
800 views
Welcome To Ask or Share your Answers For Others

1 Answer

看意思应该是更改后没有生效,猜想可能的原因如下:

  1. 你装了多个http服务,而更改的这个apache并非工作在80端口的那个。所以你无论怎么变更当前的配置文件,都不会起作用。
  2. 你可能忘了重新启动apache以让它重新加载配置文件了。
  3. 配置文件变更后,你忘了保存配置文件了

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...