这是我的vhost.conf
<VirtualHost *:80>
DocumentRoot K:/phpstormproject
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory K:/phpstormproject>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
以下是httpd.conf
的主要内容ServerRoot "K:/xxamp/apache"
<Directory />
AllowOverride none
Require all granted
</Directory>
DocumentRoot "K:/phpstormproject"
<Directory "K:/phpstormproject">
AllowOverride All
Options None
Require all granted
</Directory>
<Directory "K:/phpstormproject">
AllowOverride All
Options None
Require all granted
</Directory>
这是我到目前为止所做的一切,但是当我开始appache并转到我的localhost时,我得到了phpinfo();来自xampp文件夹中的索引。 所有的根源都在xampp目录中。
DOCUMENT_ROOT K:/xxamp/htdocs
REQUEST_SCHEME https
CONTEXT_PREFIX no value
CONTEXT_DOCUMENT_ROOT K:/xxamp/htdocs
为什么它不占用我在K:/ phpstormproecjt目录中的index.php,这是非常令人困惑的。我的索引只是说
echo "test";
提前谢谢。