VirtualHost Apache: Comment ServerName un port différent de 80

J'utilise Xampp et je veux test.localhost pour aller à 127.0.0.1:81.

Dans httpd.conf que j'ai écrit:

Listen 127.0.0.1:81
NameVirtualHost 127.0.0.1:81
<VirtualHost 127.0.0.1:81>
 ServerName test.localhost
 DocumentRoot "d:\_projects\projectx"
 DirectoryIndex index.php
</VirtualHost>

et à windows\system32\drivers\etc\hosts j'ai ajouté:

127.0.0.1       test.localhost

Mais http://test.localhost m'amène à 127.0.0.1:80.

Comment puis-je le faire aller à 127.0.0.1:81?

InformationsquelleAutor Mathias | 2011-10-19