-1

I tried to add ;

 <VirtualHost *:80>
ServerName localhost 
DocumentRoot "d:\www2\" --> tried d:\www2\
<Directory "d:\www2\">
    Options Includes Indexes FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>
Directoryindex index.php index.html index.html index.htm index.shtml
AccessFileName .htaccess

to httpd-vhosts still I can only acces to "c:/wamp/www" . I want to access with both of them. Please Help me.

user60783
  • 78
  • 3
  • 12
  • 1
    What are you trying to achieve here? You can only have one `DocumentRoot`, how else would the server know which location to serve the files from? – AJReading Mar 30 '14 at 23:39

1 Answers1

1

You can only have one document root per ServerName.

Try to set a virtual host with another server name (like localhost2), and then modify your hosts file to point localhost2 to your local ip (127.0.0.1)

Elias Soares
  • 9,884
  • 4
  • 29
  • 59