Posted by:
ciprianmp
(---.210.53.43.getinternet.no)
Hi,
After following the Virtual Hosts tutorial, I succeeded to add my vhosts, including the vhost left menu.
Previously, I have followed how to NOT suppress_localhost, it worked fine, but I reverted to have localhost/ hidden. It seems it works fine.
The problem is, when I click on any of the vhost labels in the left menu, it opens the url (i.e. mychat/) but it displays the default localhost/root index. It is the same when I click on any of my "Your projects".
My hosts file:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
127.0.0.1 calendar
127.0.0.1 plus
::1 localhost
::1 calendar
::1 plus
refresh.php
$myreplacesubmenuProjects .= 'Type: item; Caption: "'.$projectContents[$i].'"; Action: run; FileName: "'.$c_navigator.'"; Parameters: "['.$projectContents][$i].'/"; Glyph: 5
index.php
$suppress_localhost = true;
wampmanager.conf
suppressLocalhost = "yes"
httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "C:/wamp25/www"
ServerName localhost
ServerAlias localhost
<Directory "C:/wamp25/www">
AllowOverride All
<IfDefine APACHE24>
Require local
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 localhost ::1
</IfDefine>
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp25/www/calendar"
ServerName CalendarLocClass
ServerAlias CalendarLocClass
<Directory "C:/wamp25/www/calendar">
AllowOverride All
<IfDefine APACHE24>
Require local
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 localhost ::1
</IfDefine>
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp25/www/plus"
ServerName phpMyChat-Plus
ServerAlias phpMyChat-Plus
<Directory "C:/wamp25/www/plus">
AllowOverride All
<IfDefine APACHE24>
Require local
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 localhost ::1
</IfDefine>
</Directory>
</VirtualHost>
What could be wrong? (what other file should I look into?
Ciprian M.