linux - Creating auto subdomains? -


i want set apache create auto subdomains so:

i have domain mysite.com. in public /www/ directory if create directory /mysubdomain.mysite.com/ want apache create subdomain redirected directory, when trying access url

any tips please?

virtualdocumentroot want. configuration should take care of you:

<virtualhost *:80>     usecanonicalname off     serveralias *.mysite.com     virtualdocumentroot "/www/%1"     <directory "/www">         options indexes followsymlinks         allowoverride         order allow,deny         allow     </directory> </virtualhost> 

you'll need make sure either have wildcard dns record *.mysite.com or every server name want use has record pointing @ apache instance.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -