You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mandy Singh <ma...@gmail.com> on 2008/01/29 18:17:16 UTC
[users@httpd] Creating subdomains on the fly
Hello Everyone,
Hope everyone is doing good :)
I have seen this on many hosting sites, where you go and register and then
you immediately get a url like
http://{your_username}.theirdomain.com<http://%7byour_username%7d.theirdomain.com/>
.
I know that this involves 2 steps on my windows box -
1) adding an entry in the hosts file
2) adding a name based virtual host
However, now I have a requirement to do this on linux/apache.
Generally it requires a change on the dns end as well as adding a name based
virtual host.
How can I automate this process?
How can I give every user on the site a subdomain as their username?
Please let me know
Thanks,
Mandy.
RE: [users@httpd] Creating subdomains on the fly
Posted by AJ McKee <aj...@druid-dns.com>.
Apache makes this easy,
See http://gentoo-wiki.com/Apache_Modules_mod_vhost_alias for an example
config, you will be pleased.
Re: [users@httpd] Creating subdomains on the fly
Posted by Krist van Besien <kr...@gmail.com>.
On Jan 29, 2008 6:17 PM, Mandy Singh <ma...@gmail.com> wrote:
> Generally it requires a change on the dns end as well as adding a name based
> virtual host.
You need a "wildcard" DNS entry. After that no more DNS manipulation is needed.
Krist
--
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org