kirwood wrote:I don't think XAMPP can use port 80. Should not Virtualhost be *:39393?
You are correct, my mistake
kirwood wrote:Can I change Documentroot to D:/kim? This is the drive all the websites are stored on.
You can, but then you have to define access rules for the directory too, because it is outside of the by default configurated base directory \xampp\htdocs\
so, it can look something like this:
- Code: Select all
<VirtualHost *:39393>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:39393>
DocumentRoot "D:/kim"
ServerName kim
<Directory "D:/kim">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:39393>
DocumentRoot "D:/tc"
ServerName tc
<Directory "D:/tc">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
so the urls would be
http://localhost:39393/ for the XAMPP Administration page
http://kim:39393/ for the kim vhost
http://tc:39393/ for the tc vhost
best wishes,
Altrea