AMPPS虚拟主机无法正常工作 [英] AMPPS Virtualhost deosn't work

查看:110
本文介绍了AMPPS虚拟主机无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 我更新/etc/hosts并测试ping,该域有效;
  2. 我使用ampps管理工具添加域,并按照以下内容验证所做的修改.

<VirtualHost 127.0.0.1:80>
<Directory "/www/companyname">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName local.companyname.com
ServerAlias local.companyname.com
ScriptAlias /cgi-bin/ "/www/companyname/cgi-bin/"
DocumentRoot "/www/companyname"
ErrorLog "/Applications/AMPPS/apache/logs/local.companyname.com.err"
CustomLog "/Applications/AMPPS/apache/logs/local.companyname.com.log" combined
</VirtualHost>

然后我重新启动AMPPS,但仍然无法正常工作.它将连接到默认的127.0.0.1页面,而不是我的"/www/companyname"页面.

then I restart the AMPPS, but it still doesn't work. It would connect to the default 127.0.0.1 page not my '/www/companyname' page.

推荐答案

问题是由于AMPPS的默认设置,您应该在AMPPS/conf文件夹下创建额外"文件夹,而不是AMPPS/apache/extra,应为AMPPS/conf/extra.

The problem is due the default setting of AMPPS, you should create 'extra' folder under the AMPPS/conf folder, it is not the one under AMPPS/apache/extra, should be AMPPS/conf/extra.

这篇关于AMPPS虚拟主机无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆