Mil1243 Posted April 16, 2008 Share Posted April 16, 2008 hello guys, i need help about this issue: i have a site (www.mydomain.com) and i want to create a subdomain for each of user who register(www.user.mydomain.com) and user.mydomain.com) and each user enter a URL (www.example.com) and a TITLE that when he visit his subdomain (www.user.mydomain.com and user.mydomain.com), it should redirect him to the URL (www.example.com) with the TITLE that he entered before, I think it is not redirecting because we are using a new URL with new TITLE, maybe it is fetching or something.so there is 2 problem: 1- how to create subdomains automatically. 2- how to redirect with the user specification. thank u in advance, Quote Link to comment Share on other sites More sharing options...
steviewdr Posted April 16, 2008 Share Posted April 16, 2008 Create subdomains automatically: You'll have to look into vhost_alias -steve Quote Link to comment Share on other sites More sharing options...
Mil1243 Posted April 17, 2008 Author Share Posted April 17, 2008 Create subdomains automatically: You'll have to look into vhost_alias -steve Would you plz tell me about vhost_alias? what is that? you know, I'm new to these stuffs! thanks Quote Link to comment Share on other sites More sharing options...
steviewdr Posted April 17, 2008 Share Posted April 17, 2008 http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html I have not configured this myself. Basically if the following folder structure is created, a vhost will work straight away: /srv/vhost/sitename1 /srv/vhost/sitename2 Once the above folder structure is made, the following vhosts would work immediately: www.sitename1.host.com www.sitename2.host.com You'll have to do the rest yourself -steve Quote Link to comment Share on other sites More sharing options...
sweb Posted April 19, 2008 Share Posted April 19, 2008 http://apptools.com/phptools/virtualhost.php i use this steps to creat some domain or subdomains in my computer i use windows xp sp2 and apache 2.2. but the new addition subdomain and domain not available. i restart the apache and windows but problem has not been solve. what's my problem? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.