php - Apache subdomain for every user -


i working on blogging service , want every account have own subdomain. currently, urls http://example.com/blog/username, want them username.example.com. created wildcard record pointing server , using apache2.

i did not find thread covers question here. if there one, great if send link me.

thank you

what trying accomplish should trivial of mod_vhost_alias module. since asked link, here 1 on apache website show how dynamically configure mass virtual hosting: http://httpd.apache.org/docs/2.4/vhosts/mass.html

everything need included on linked page. also, read more mod_vhost_alias configuration options go http://httpd.apache.org/docs/2.4/mod/mod_vhost_alias.html


Comments