Apache安装程序000-default.conf文件 [英] Apache setup 000-default.conf file
问题描述
我确信这是一个简单的例子:
I am sure this is a simple one:
我已经迷失了机器并设置了LAMP,并且IP配置为10.0.0.10.
I have vagranted up a machine and setup the LAMP, and the IP is configured to 10.0.0.10.
在Windows计算机中,我修改了hosts文件并添加了一个名为"rsywx_remote"的条目.从Windows计算机到无业游民计算机的ping操作正常.从我的Windows机器上的浏览器中加载"rsywx_remote"也可以.连接没有问题.
In my Windows machine, I have modified the hosts file and added one entry named as "rsywx_remote". The ping from my Windows machine to my vagrant machine is OK. Load the "rsywx_remote" in browser from my Windows machine is also fine. The connectivity is of no problem.
然后我通过SSH连接到无业游民的计算机,并像这样修改/etc/apache2/sites-enabled/000-default.conf
:
I then SSH to my vagrant machine and modified the /etc/apache2/sites-enabled/000-default.conf
like this:
<VirtualHost 127.0.0.1>
DocumentRoot "/www/rsywx/web"
ServerName rsywx_remote
ServerAlias rsywx_remote
<Directory "/www/rsywx/web">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
Allow from 127.0.0.1
Deny from all
Require all granted
</Directory>
</VirtualHost>
重新启动了我无所事事的Apache服务,它仍然指向默认页面,而不是我期望的页面.
Restarted my vagrant Apache service, and it still points to the default page, not the one I expected.
有任何提示吗?
推荐答案
尝试:
<VirtualHost *:80>
它将监听所有地址
这篇关于Apache安装程序000-default.conf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!