所以我们都知道要在htdocs里面访问你的网站,你必须输入“localhost/yoursite文件夹”对不对?但我已经设法改变了我的朋友的一些帮助。现在我的朋友不在了,所以我不能让他改回来。我可以通过“mysite.test”访问它,而不是“localhost/yoursite”,它与system32中的host.txt有关。现在的问题是即时在htdocs中安装一个新的drupal站点,我不能访问它,因为我的localhost总是指向我的第一个drupal站点。我该如何配置?如何将htdocs中的localhost/myfolder重命名为某个域名
这里是我的HOST.TXT
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 activate.adobe.com
127.0.0.1 drupal6.test
127.0.0.1 belmark.test
的Drupal 6是我以前的网站。 belmark.test是我希望本地主机指向哪个站点不工作的站点。即使我省略drupal6.test行本地主机还是定向到drupal6.test
,这里是我的httpd-vhost.conf如果
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/xampp/htdocs/drupal6"
ServerName drupal6.test
ServerAlias drupal6.test
ErrorLog "logs/drupal6.test-error.log"
CustomLog "logs/drupal6.test-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/xampp/htdocs/drupal7"
ServerName belmark.test
ServerAlias belmark.test
ErrorLog "logs/drupal.test-error.log"
CustomLog "logs/drupal.test-access.log" combined
</VirtualHost>
我不知道如何进一步阐述这个问题。请帮忙。 – 2013-03-21 16:12:40