edulopez:
Tu solucion esta en los VIRTUAL HOSTS del Servidor Apache.
1.- te vas al httpd.conf del apache y haces lo siguiente -> NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin
[email protected]
DocumentRoot "C:/Apache/Apache2/htdocs"
ServerName
www.tudominio.com
</VirtualHost>
#localhost first
<VirtualHost *:80>
ServerAdmin
[email protected]
DocumentRoot "C:/Apache/Apache2/htdocs/carpeta"
ServerName subdominio.tudominio.com
</VirtualHost>
2.- Te vas a los HOSTS file
123.456.789.012 dominio.com
123.456.789.012 subdominio.tudominio.com
Saludos
Y espero te ayude
Franco



P.S Esto es para windows, Mysql, php y Apache