Im by no means any sort of expert on this, but the following setup works for me.
in httpd-vhosts.conf, make sure the following line is uncommented.
NameVirtualHost *:80
The set up the virtual hosts:
<VirtualHost *:80>
DocumentRoot "d:/xaamp/htdocs/dev.somesite.com. au"
ServerName dev.somesite.com.au
</VirtualHost>
That works for me. I think you also need to define localhost as a vhost as well.
<VirtualHost *:80>
ServerName localhost
DocumentRoot "D:/xampp/htdocs"
</VirtualHost>
You can include per directory stuff as well by using <Directory> For example.
<VirtualHost *:80>
DocumentRoot "d:/xaamp/htdocs/dev.somesite.com. au"
ServerName dev.somesite.com.au
<Directory "D:/xampp/htdocs/dev.somesite.com. au">
Options Indexes Includes execCGI
AllowOverride None
Order Allow,Deny
Allow From All
</Directory>
</VirtualHost>
Then in the hosts file (from memory, in xp its found at c:\windows\system32\drivers\etc\), define hosts like so:
127.0.0.1 localhost
127.0.0.1 dev.somesite.com.au
hth
Suscribirse a:
Enviar comentarios (Atom)
Cambiar tamaño de fuente al reducir la ventana (HTML / CSS)
Cambiar el tamaño del texto a medida que se reduce el tamaño de la ventana (HTML5 / CSS3) . container { border : solid 1px blue ; ...
-
Puede crear y configurar elementos de preferencias de tarea programada o tarea inmediata para cualquier objeto de directiva de grupo (GPO)...
-
Migrating to another virtual machine program can be intimidating. if you already have your virtual machines set up they way you like th...
-
La Edición de columnas permite al usuario editar texto en varias líneas como una zona cuadrada vertical. Esta característica está habilitad...
No hay comentarios:
Publicar un comentario