我的XAMPP apache存在很大问题.....基本上我已经设置了虚拟主机,并且我标记了该文件。
所以在我更新httpd.conf文件之后突然间我再也无法运行apache ......
我将该文件的副本保存为httpd.conf.ORG,然后我和另一个一起玩了,我添加了这个:
DocumentRoot "C:/xampp/htdocs"
<VirtualHost 127.0.0.1>
ServerName aam.dev
DocumentRoot"C:\xampp\projects\aam.dev"
</<VirtualHost >
<VirtualHost 127.0.0.1>
ServerName int.tech
DocumentRoot"C:\xampp\projects\int.tech"
</<VirtualHost >
<Directory "C:/xampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
<Directory "C:\xampp\projects\aam.dev">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
<Directory "C:\xampp\projects\int.tech">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
我还在Windows主机文件中添加了两个域但是当我尝试重新启动apache时,它并非全部工作&gt;&gt;&gt;&gt;&gt;它只是说
尝试启动Apache服务..
当我访问访问日志或错误日志时,没有任何兴趣,最终条目如下:
的access.log
127.0.0.1 - - [18/Oct/2013:18:28:40 +0100] "GET /xampp/ssi.shtml HTTP/1.0" 200 6 "-" "-"
127.0.0.1 - - [18/Oct/2013:18:28:40 +0100] "GET /xampp/status.php HTTP/1.1" 200 3110 "http://int.tech/xampp/navi.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0"
error.log中
[Fri Oct 18 18:29:38.212991 2013] [mpm_winnt:notice] [pid 3864:tid 260] AH00364: Child: All worker threads have exited.
[Fri Oct 18 18:29:38.252994 2013] [mpm_winnt:notice] [pid 6308:tid 384] AH00430: Parent: Child process 3864 exited successfully.
从我的理解它刚刚停止正常,就是我在进行任何更改之前停止它,但是在它不工作之后....最后,当我重新启动原始的httpd文件时,它可以工作。
我假设我的VH Config出了问题?
提前致谢
BTW我正在运行XAMP 1.8.3