Subdomain For Windows

Explicación sobre funcionamiento

Para la implementación de uno en uno de los subdomain en windows tendremos que introducir el código mostrado en los ficheros:

  • C:xamppapacheconfextrahttpd-vhosts.conf

  • C:WindowsSystem32driversetchosts (se tendrá que editar como administrador)

Introducción de datos

fichero: C:xamppapacheconfextrahttpd-vhosts.conf

## ------------------------ inicio de subdomain ------------------------				


<VirtualHost barcelonaschoolofcreativity.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName barcelonaschoolofcreativity.classlife.local
   ServerAlias barcelonaschoolofcreativity.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost bbi.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName bbi.classlife.local
   ServerAlias bbi.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost bilbaoformacion.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName bilbaoformacion.classlife.local
   ServerAlias bilbaoformacion.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost brotherad.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName brotherad.classlife.local
   ServerAlias brotherad.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost campus25.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName campus25.classlife.local
   ServerAlias campus25.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost cedesca.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName cedesca.classlife.local
   ServerAlias cedesca.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost cems.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName cems.classlife.local
   ServerAlias cems.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost centric.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName centric.classlife.local
   ServerAlias centric.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost challengeschool.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName challengeschool.classlife.local
   ServerAlias challengeschool.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost demo.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName demo.classlife.local
   ServerAlias demo.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost daniel.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName daniel.classlife.local
   ServerAlias daniel.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost www.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName www.classlife.local
   ServerAlias www.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost eiaf.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName eiaf.classlife.local
   ServerAlias eiaf.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost enti.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName enti.classlife.local
   ServerAlias enti.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost escac.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName escac.classlife.local
   ServerAlias escac.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost esdi.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName esdi.classlife.local
   ServerAlias esdi.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost eshi.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName eshi.classlife.local
   ServerAlias eshi.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost essat.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName essat.classlife.local
   ServerAlias essat.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost etecam.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName etecam.classlife.local
   ServerAlias etecam.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost euroaula.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName euroaula.classlife.local
   ServerAlias euroaula.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost formasformacion.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName formasformacion.classlife.local
   ServerAlias formasformacion.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost formasgranada.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName formasgranada.classlife.local
   ServerAlias formasgranada.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost fotodesign.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName fotodesign.classlife.local
   ServerAlias fotodesign.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost fxanimation.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName fxanimation.classlife.local
   ServerAlias fxanimation.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost hmhospitales.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName hmhospitales.classlife.local
   ServerAlias hmhospitales.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost iefc.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName iefc.classlife.local
   ServerAlias iefc.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost ilerna.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName ilerna.classlife.local
   ServerAlias ilerna.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost inesdi.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName inesdi.classlife.local
   ServerAlias inesdi.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost intsam.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName intsam.classlife.local
   ServerAlias intsam.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost itep.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName itep.classlife.local
   ServerAlias itep.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost ites.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName ites.classlife.local
   ServerAlias ites.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost joanmaragall.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName joanmaragall.classlife.local
   ServerAlias joanmaragall.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost labasad.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName labasad.classlife.local
   ServerAlias labasad.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost lidem.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName lidem.classlife.local
   ServerAlias lidem.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost lidem.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName lidem.classlife.local
   ServerAlias lidem.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost lilly.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName lilly.classlife.local
   ServerAlias lilly.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost makeandlearn.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName makeandlearn.classlife.local
   ServerAlias makeandlearn.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost metafora.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName metafora.classlife.local
   ServerAlias metafora.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost musicacreativa.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName musicacreativa.classlife.local
   ServerAlias musicacreativa.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost mvig.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName mvig.classlife.local
   ServerAlias mvig.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost ohmycode.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName ohmycode.classlife.local
   ServerAlias ohmycode.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost seeway.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName seeway.classlife.local
   ServerAlias seeway.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost taiarts.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName taiarts.classlife.local
   ServerAlias taiarts.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


<VirtualHost toomanyflash.classlife.local:80>
   DocumentRoot "C:/xampp/htdocs/classlife/classlife-produccion/classlife"
   ServerName toomanyflash.classlife.local
   ServerAlias toomanyflash.classlife.local
   ErrorLog "logs/classlife.local-error.log"
   CustomLog "logs/classlife.local-acces.log" common
</VirtualHost>


## ------------------------ fin de subdomain ------------------------

fichero: C:WindowsSystem32driversetchosts (se tendrá que editar como administrador)

## ------------------------ inicio de subdomain ------------------------				


127.0.0.1       localhost barcelonaschoolofcreativity.classlife.local
::1             localhost barcelonaschoolofcreativity.classlife.local


127.0.0.1       localhost bbi.classlife.local
::1             localhost bbi.classlife.local


127.0.0.1       localhost bilbaoformacion.classlife.local
::1             localhost bilbaoformacion.classlife.local


127.0.0.1       localhost brotherad.classlife.local
::1             localhost brotherad.classlife.local


127.0.0.1       localhost campus25.classlife.local
::1             localhost campus25.classlife.local


127.0.0.1       localhost cedesca.classlife.local
::1             localhost cedesca.classlife.local


127.0.0.1       localhost cems.classlife.local
::1             localhost cems.classlife.local


127.0.0.1       localhost centric.classlife.local
::1             localhost centric.classlife.local


127.0.0.1       localhost challengeschool.classlife.local
::1             localhost challengeschool.classlife.local


127.0.0.1       localhost demo.classlife.local
::1             localhost demo.classlife.local


127.0.0.1       localhost daniel.classlife.local
::1             localhost daniel.classlife.local


127.0.0.1       localhost www.classlife.local
::1             localhost www.classlife.local


127.0.0.1       localhost eiaf.classlife.local
::1             localhost eiaf.classlife.local


127.0.0.1       localhost enti.classlife.local
::1             localhost enti.classlife.local


127.0.0.1       localhost escac.classlife.local
::1             localhost escac.classlife.local


127.0.0.1       localhost esdi.classlife.local
::1             localhost esdi.classlife.local


127.0.0.1       localhost eshi.classlife.local
::1             localhost eshi.classlife.local


127.0.0.1       localhost essat.classlife.local
::1             localhost essat.classlife.local


127.0.0.1       localhost etecam.classlife.local
::1             localhost etecam.classlife.local


127.0.0.1       localhost euroaula.classlife.local
::1             localhost euroaula.classlife.local


127.0.0.1       localhost formasformacion.classlife.local
::1             localhost formasformacion.classlife.local


127.0.0.1       localhost formasgranada.classlife.local
::1             localhost formasgranada.classlife.local


127.0.0.1       localhost fotodesign.classlife.local
::1             localhost fotodesign.classlife.local


127.0.0.1       localhost fxanimation.classlife.local
::1             localhost fxanimation.classlife.local


127.0.0.1       localhost hmhospitales.classlife.local
::1             localhost hmhospitales.classlife.local


127.0.0.1       localhost iefc.classlife.local
::1             localhost iefc.classlife.local


127.0.0.1       localhost ilerna.classlife.local
::1             localhost ilerna.classlife.local


127.0.0.1       localhost inesdi.classlife.local
::1             localhost inesdi.classlife.local


127.0.0.1       localhost intsam.classlife.local
::1             localhost intsam.classlife.local


127.0.0.1       localhost itep.classlife.local
::1             localhost itep.classlife.local


127.0.0.1       localhost ites.classlife.local
::1             localhost ites.classlife.local


127.0.0.1       localhost joanmaragall.classlife.local
::1             localhost joanmaragall.classlife.local


127.0.0.1       localhost labasad.classlife.local
::1             localhost labasad.classlife.local


127.0.0.1       localhost lidem.classlife.local
::1             localhost lidem.classlife.local


127.0.0.1       localhost lidem.classlife.local
::1             localhost lidem.classlife.local


127.0.0.1       localhost lilly.classlife.local
::1             localhost lilly.classlife.local


127.0.0.1       localhost makeandlearn.classlife.local
::1             localhost makeandlearn.classlife.local


127.0.0.1       localhost metafora.classlife.local
::1             localhost metafora.classlife.local


127.0.0.1       localhost musicacreativa.classlife.local
::1             localhost musicacreativa.classlife.local


127.0.0.1       localhost mvig.classlife.local
::1             localhost mvig.classlife.local


127.0.0.1       localhost ohmycode.classlife.local
::1             localhost ohmycode.classlife.local


127.0.0.1       localhost seeway.classlife.local
::1             localhost seeway.classlife.local


127.0.0.1       localhost taiarts.classlife.local
::1             localhost taiarts.classlife.local


127.0.0.1       localhost toomanyflash.classlife.local
::1             localhost toomanyflash.classlife.local


## ------------------------ fin de subdomain ------------------------