Apache 具有XAMPP 3.2.1的多个虚拟主机
我无法识别第二个病毒宿主。几年前,我让它工作,但在升级过程中,它坏了Apache 具有XAMPP 3.2.1的多个虚拟主机,apache,xampp,vhosts,Apache,Xampp,Vhosts,我无法识别第二个病毒宿主。几年前,我让它工作,但在升级过程中,它坏了 localhost被识别开发不可用。我在Windows7上使用的是XAMPPV3.2.1。在浏览器中键入dev,会将我发送到浏览器的搜索引擎。httpd-vhosts.conf和hosts文件的设置如下,我已经包含了一个来自C:\xampp\apache\bin\httpd-S的转储文件。如有任何帮助,将不胜感激 注意:如果我在dev目录中键入index.php文件的显式路径,它将不会作为php文件运行,但只列出内容 另外:在
localhost
被识别<代码>开发不可用。我在Windows7上使用的是XAMPPV3.2.1。在浏览器中键入dev
,会将我发送到浏览器的搜索引擎。httpd-vhosts.conf和hosts文件的设置如下,我已经包含了一个来自C:\xampp\apache\bin\httpd-S的转储文件。如有任何帮助,将不胜感激
注意:如果我在dev
目录中键入index.php
文件的显式路径,它将不会作为php文件运行,但只列出内容
另外:在my access.log中,我得到以下信息:
127.0.0.1 - - [04/Jul/2015:09:48:12 -0700] "GET /css/ms.js HTTP/1.1" 304 - "http://localhost/dev" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
我的C:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "D:/Website/root"
ServerName localhost
<Directory "D:/Website/root">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
deny from all
Allow from localhost
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/Website/dev"
ServerName dev
<Directory "D:/Website/dev">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
deny from all
Allow from localhost
Require all granted
</Directory>
</VirtualHost>
C:>C:\xampp\apache\bin\httpd-S
VirtualHost configuration: *:80 is a NameVirtualHost
default server localhost (C:/xampp/apache/conf/extra/httpd-vhosts.conf:44)
port 80 namevhost localhost (C:/xampp/apache/conf/extra/httpd-vhosts.conf:44)
port 80 namevhost dev (C:/xampp/apache/conf/extra/httpd-vhosts.conf:60)
ServerRoot: "C:/xampp/apache"
Main DocumentRoot: "D:/Website/root"
Main ErrorLog: "C:/xampp/apache/logs/error.log"
Mutex rewrite-map: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="C:/xampp/apache/logs/" mechanism=default
PidFile: "C:/xampp/apache/logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
让它发挥作用
配置是正确的
.htaccess文件中的include_路径不正确
Firefox将我重定向到我的搜索引擎,但给了我一个提示,提示栏上写着:“你想改为转到开发人员吗?”当我点击它时,它给了我一个错误,我可以追踪到问题所在的路径
IE刚刚重定向到我的搜索引擎
浏览器变得太聪明了,试图通过发送我进行搜索来解析我的条目。让它工作起来
配置是正确的
.htaccess文件中的include_路径不正确
Firefox将我重定向到我的搜索引擎,但给了我一个提示,提示栏上写着:“你想改为转到开发人员吗?”当我点击它时,它给了我一个错误,我可以追踪到问题所在的路径
IE刚刚重定向到我的搜索引擎
浏览器越来越聪明,试图通过发送我进行搜索来解析我的条目
VirtualHost configuration: *:80 is a NameVirtualHost
default server localhost (C:/xampp/apache/conf/extra/httpd-vhosts.conf:44)
port 80 namevhost localhost (C:/xampp/apache/conf/extra/httpd-vhosts.conf:44)
port 80 namevhost dev (C:/xampp/apache/conf/extra/httpd-vhosts.conf:60)
ServerRoot: "C:/xampp/apache"
Main DocumentRoot: "D:/Website/root"
Main ErrorLog: "C:/xampp/apache/logs/error.log"
Mutex rewrite-map: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="C:/xampp/apache/logs/" mechanism=default
PidFile: "C:/xampp/apache/logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG