I've searched high and low for this and I would appreciate if anyone could do a walk through on settings up subdomains for users without going through cPanel.
The skinny:
I have a scripting package that will create virtual user accounts with URLs like this: http://www.mydomain.com/user/
The script says that Apache must have mod_rewrite (which it does) in order to create subdomains that change the above example into: http://user.mydomain.com
I will have many subdomains that will need to be set up like this and I do not want to do it via cpanel all the time.
Basically, the ideal solution to this would be to have the user's website be accessable via both examples above and behave just like subdomains created via cPanel.
I've read about wildcards and mod_rewrite. I've tried setting up a .htaccess file, but with no success. The script creates the account, but the best I can do is get the "There is no website configured at this address" default cPanel page when I put a user's subdomain in.
I would appreciate any help. Most examples that I have come across do not include cPanel in the picture and often point to a regular *nix box w/ virtual hosting.
P.S. I am migrating to this script because I want to automate the creation of user accounts w/ subdomains. Since there aren't any scripts that interface w/ cPanel for what I want to do, this is my only solution. The script I am using is great (but the author's support stinks and he doesn't know anything about servers running cPanel).
The skinny:
I have a scripting package that will create virtual user accounts with URLs like this: http://www.mydomain.com/user/
The script says that Apache must have mod_rewrite (which it does) in order to create subdomains that change the above example into: http://user.mydomain.com
I will have many subdomains that will need to be set up like this and I do not want to do it via cpanel all the time.
Basically, the ideal solution to this would be to have the user's website be accessable via both examples above and behave just like subdomains created via cPanel.
I've read about wildcards and mod_rewrite. I've tried setting up a .htaccess file, but with no success. The script creates the account, but the best I can do is get the "There is no website configured at this address" default cPanel page when I put a user's subdomain in.
I would appreciate any help. Most examples that I have come across do not include cPanel in the picture and often point to a regular *nix box w/ virtual hosting.
P.S. I am migrating to this script because I want to automate the creation of user accounts w/ subdomains. Since there aren't any scripts that interface w/ cPanel for what I want to do, this is my only solution. The script I am using is great (but the author's support stinks and he doesn't know anything about servers running cPanel).