Mein XAMPP liegt auch auf D und die "Webdokumente" lege ich z.B. außerhalb von XAMPP ab. Das ist m.E. nur eine Frage wie man die vhosts einrichtet.
Ich habe z.B. in hosts
Code:
127.0.0.1 localhost
127.0.0.1 test1.localhost
127.0.0.1 test2.localhost
Und in httpd-vhost.conf
Code:
<Directory "D:/public_html">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Require all granted
</Directory>
<VirtualHost *:80>
DocumentRoot "D:/xampp/htdocs/"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/public_html/test1/"
ServerName test1.localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/public_html/test2/"
ServerName test2.localhost
</VirtualHost>
Das geht aber m.E. genauso, wenn man seine Daten auf einer anderen Festplatte hat.
Lesezeichen