I want user to be able set up development sites on a server without the need for creating dns entries or apache vhost files. My current working solution to this has two elements.
Firstly creating a wildcard dns entry. This is a dns entry which starts with a wildcard “*” followed by the domain (or in this case subdomain).
*.devel.foo.com A 192.168.1.200
Any request to devel.foo.com will then be directed to the named server regardless of their prefix eg (project.a.devel.foo.com, kittenwar.devel.foo.com)
At this point the apache server receiving requests from these hosts will have no idea how to deal with them so we must create a dynamic vhost file. A detailed description of a dynamic vhosts can be found on the Apache site, but basically what it will do is take the server name from a request and use it to set the document path etc in the vhost dynamically. So using the configuration bellow
# get the server name from the Host: header
UseCanonicalName Off
# this log format can be split per-virtual-host based on the first field
LogFormat “%V %h %l %u %t \”%r\” %s %b” vcommon
CustomLog logs/access_log vcommon
# include the server name in the filenames used to satisfy requests
VirtualDocumentRoot /www/hosts/%0/docs
project.a.devel.foo.com will point to the documents in directory /www/hosts/project.a.devel.foo.com/docs and
kittenwar.devel.foo.com will point to /www/hosts/kitten.devel.foo.com/docs. So in effect this means all a developer has to do to have an accessible dev site is to create the proper name in the proper directory.
Buy:Advair.Zetia.Acomplia.Nymphomax.Buspar.Cozaar.Zocor.Seroquel.Wellbutrin SR.Lipitor.Female Cialis.Amoxicillin.Female Pink Viagra.Aricept.Ventolin.Prozac.Lasix.Benicar.SleepWell.Lipothin….
Buy:Aricept.Lipothin.Lipitor.Acomplia.Prozac.Amoxicillin.Female Cialis.Ventolin.Zocor.Buspar.Zetia.Benicar.Seroquel.Advair.Female Pink Viagra.SleepWell.Cozaar.Nymphomax.Lasix.Wellbutrin SR….
Buy:Aricept.Lipothin.Female Cialis.Advair.Prozac.Buspar.Amoxicillin.Ventolin.Acomplia.Nymphomax.Lasix.Wellbutrin SR.SleepWell.Cozaar.Benicar.Zocor.Zetia.Lipitor.Seroquel.Female Pink Viagra….
Buy:Buspar.Wellbutrin SR.Zetia.Female Cialis.Female Pink Viagra.Acomplia.Aricept.Lipothin.Ventolin.Lasix.Seroquel.Benicar.Prozac.SleepWell.Amoxicillin.Cozaar.Nymphomax.Advair.Lipitor.Zocor….
…
BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…