![](/img/trans.png)
[英]Could not execute menu item (internal error) … cannot find file when attempting to access httpd.conf and httpd-vhosts.conf
[英]httpd.conf VS httpd-vhosts.conf
我將以下代碼添加到httpd.conf中,並且可以正常工作。
我刪除了以下代碼,並將其添加到httpd-vhosts.conf中,它也可以工作。
如果常規文件httpd.conf可以運行,為什么xampp提供了httpd-vhosts.conf?
例:
<VirtualHost 127.0.0.2:80>
DocumentRoot "F:/server/htdocs"
ServerName google.com
ServerAlias www.google.com
ErrorLog "logs/google.com-error.log"
CustomLog "logs/google.dec-access.log" combined
<Directory "F:/server/htdocs">
Options Indexes FollowSymLinks ExecCGI Includes
Order allow,deny
Allow from all
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Apache的某些發行版提供了一些文件,這些文件在您應用維護時將被覆蓋,而另一些則留給用戶使用。 從Apache的角度來看,所有配置文件都是相同的。
在httpd.conf中,您具有“包含”參數。 它包含另一個conf文件的路徑-在您的情況下,它是httpd-vhosts.conf的路徑
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.