Hi, I have installed apache2.2 on windows vista.
My httpd-vhosts.conf file has;
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin someplace@gmail.com
DocumentRoot "C:/apache_second/htdocs"
ServerName default.localhost
</VirtualHost>
(the DocumentRoot … above is not of the htdocs/ from the actual apache installation folder which is in my case inside “c:/program files/apache software foundation/…”. I have symbolic links for apache’s conf/ and htdocs/ dirs in c:/apache_second. Read a tutorial that it is easier this way as it avoids the permission dialog boxes vista keeps popping up whenever you edit files insides some dirs such as c:/program files. )
<VirtualHost 127.0.0.1:80>
ServerAdmin someplace@gmail.com
DocumentRoot "F:/projects/bfe"
ServerName bfe.localhost
DirectoryIndex index.php index.html index.htm index.shtml test.php
</VirtualHost>
and I have these in my httpd.conf;
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "C:/apache_second/htdocs">
[B]Options +Indexes[/B] FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#<IfModule dir_module>
#DirectoryIndex index.php index.shtml index.html
#</IfModule>
and I have these in my c:\windows\system32\drivers\etc\hosts file;
127.0.0.1 localhost
127.0.0.1 default.localhost
127.0.0.1 bfe.localhost
I am able to run files that’s inside this symbolic folder “C:/apache_second/htdocs” with the virtual http://default.localhost/… but
-
When I try to access the site with http://bfe.localhost it gives a “You don’t have permission to access / on this server.” error.
-
Also I don’t get the directory listing ( with the working http://localhost or http://default.localhost ) even though I have
Options +Indexes in the <Directory> directive and have commented out the DirectoryIndex stuff in httpd.conf .
Any idea what could be wrong?.