Php 本地虚拟主机
我遵循了上面链接中显示的步骤Php 本地虚拟主机,php,apache,debian,Php,Apache,Debian,我遵循了上面链接中显示的步骤 #mkdir -p /var/www/smartschool.com/public_html #chown rushabh:rushabh -R /var/www/smartschool.com #chmode 755 -R /var/www/smartschool.com #vi /var/www/smartschool.com/public_html/idex.html #cp /etc/apache2/sites-available/default /etc/
#mkdir -p /var/www/smartschool.com/public_html
#chown rushabh:rushabh -R /var/www/smartschool.com
#chmode 755 -R /var/www/smartschool.com
#vi /var/www/smartschool.com/public_html/idex.html
#cp /etc/apache2/sites-available/default /etc/apache2/sites-available/smartschool.com
#vi /etc/apache2/sites-available/smartschool.com
<VirtualHost *:80>
ServerAdmin webmaster@smartschool.com
ServerName smartschool.com
ServerAlias www.smartschool.com [...]
#a2ensite smartschool.com
#service apache2 restart
#mkdir-p/var/www/smartschool.com/public\u html
#chown rushabh:rushabh-R/var/www/smartschool.com
#chmode755-R/var/www/smartschool.com
#vi/var/www/smartschool.com/public_html/idex.html
#cp/etc/apache2/sites available/default/etc/apache2/sites available/smartschool.com
#vi/etc/apache2/sites available/smartschool.com
服务器管理员webmaster@smartschool.com
ServerName smartschool.com
ServerAlias www.smartschool.com[…]
#a2ensite smartschool.com
#服务apache2重新启动
现在我的firefox正在向我展示
未找到
在此服务器上找不到请求的URL/
smartschool.com端口80上的Apache/2.2.22(Debian)服务器
我错过什么了吗?提前谢谢你你也更新了你的主机文件吗?是的,我用127.0.0.1 smartschool.com更新了/etc/host,没有这个。。。在这两种情况下,它都不起作用。。。未编写127.0.0.1 smartschool.com时,浏览器搜索页面并最终显示加载页面时出现的问题您是否设置了
DocumentRoot
?是否有一个目录
指令引用授予访问权限的文档根
?您是否关闭了
?没有,仍然不工作