最赞回答 / 小小的少年
test01.com指向的是172.0.0.1,而172.0.0.1又是localhost的,所以会到达WWW(Dome)的目录,这个目录有这3个文件,没有INDEX的主页文件,服务器不知道你要打开什么,所有就显示了目录下的3个文件!
2016-04-12
无法访问locahost/test.php在httpd-vhosts.conf文件加上
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "d:/Lonely/Web/PHPDome/" //目录写你自己的目录
ServerName localhost
</VirtualHost>
保存就可以了
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "d:/Lonely/Web/PHPDome/" //目录写你自己的目录
ServerName localhost
</VirtualHost>
保存就可以了
2016-04-11
2.5版本的
httpd-vhosts.conf文件照老师的做就好了
httpd.conf文件只要去掉Include conf/extra/httpd-vhosts.conf前面的#就可以了
httpd-vhosts.conf文件照老师的做就好了
httpd.conf文件只要去掉Include conf/extra/httpd-vhosts.conf前面的#就可以了
2016-04-11
老师这节课讲的内容有错误,按照他说的操作不能实现,后来这样修改就好了<Directory />
AllowOverride None
# Order deny,allow
# Deny from all
# Satisfy all
</Directory>。
AllowOverride None
# Order deny,allow
# Deny from all
# Satisfy all
</Directory>。
2016-04-11
Notice: Undefined variable: data_int1 in /54/746/CN4W/index.php on line 3
Notice: Undefined variable: data_int2 in /54/746/CN4W/index.php on line 6
Notice: Undefined variable: data_int3 in /54/746/CN4W/index.php on line 9
Notice: Undefined variable: data_int4 in /54/746/CN4W/index.php on line 12
Notice: Undefined variable: data_int2 in /54/746/CN4W/index.php on line 6
Notice: Undefined variable: data_int3 in /54/746/CN4W/index.php on line 9
Notice: Undefined variable: data_int4 in /54/746/CN4W/index.php on line 12
2016-04-11